You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/08/21 16:11:42 UTC

svn commit: r234205 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java

Author: jeremias
Date: Sun Aug 21 07:11:39 2005
New Revision: 234205

URL: http://svn.apache.org/viewcvs?rev=234205&view=rev
Log:
Better error message.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java?rev=234205&r1=234204&r2=234205&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java Sun Aug 21 07:11:39 2005
@@ -839,7 +839,8 @@
 
     protected int getLineWidth(int line) {
         if (this.lineWidth < 0) {
-            throw new IllegalStateException("lineWidth must be set");
+            throw new IllegalStateException("lineWidth must be set" 
+                    + (this.lineWidth != 0 ? " and positive, but it is: " + this.lineWidth : ""));
         } else {
             return this.lineWidth;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org