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 ad...@apache.org on 2007/07/05 21:01:15 UTC

svn commit: r553612 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/Constants.java

Author: adelmelle
Date: Thu Jul  5 12:01:14 2007
New Revision: 553612

URL: http://svn.apache.org/viewvc?view=rev&rev=553612
Log:
Fix for a tiny but very nasty bug...

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/Constants.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/Constants.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/Constants.java?view=diff&rev=553612&r1=553611&r2=553612
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/Constants.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/Constants.java Thu Jul  5 12:01:14 2007
@@ -1054,39 +1054,39 @@
     /** Enumeration constant */
     int EN_LIGHTER = 168;
     /** Enumeration constant */
-    int EN_100 = 168;
+    int EN_100 = 169;
     /** Enumeration constant */
-    int EN_200 = 169;
+    int EN_200 = 170;
     /** Enumeration constant */
-    int EN_300 = 170;
+    int EN_300 = 171;
     /** Enumeration constant */
-    int EN_400 = 171;
+    int EN_400 = 172;
     /** Enumeration constant */
-    int EN_500 = 172;
+    int EN_500 = 173;
     /** Enumeration constant */
-    int EN_600 = 173;
+    int EN_600 = 174;
     /** Enumeration constant */
-    int EN_700 = 174;
+    int EN_700 = 175;
     /** Enumeration constant */
-    int EN_800 = 175;
+    int EN_800 = 176;
     /** Enumeration constant */
-    int EN_900 = 176;
+    int EN_900 = 177;
     /** Enumeration constant -- page-break-shorthand */
-    int EN_AVOID = 177;
+    int EN_AVOID = 178;
     /** Enumeration constant -- white-space shorthand */
-    int EN_PRE = 178;
+    int EN_PRE = 179;
     /** Enumeration constant -- font shorthand */
-    int EN_CAPTION = 179;
+    int EN_CAPTION = 180;
     /** Enumeration constant -- font shorthand */
-    int EN_ICON = 180;
+    int EN_ICON = 181;
     /** Enumeration constant -- font shorthand */
-    int EN_MENU = 181;
+    int EN_MENU = 182;
     /** Enumeration constant -- font shorthand */
-    int EN_MESSAGE_BOX = 182;
+    int EN_MESSAGE_BOX = 183;
     /** Enumeration constant -- font shorthand */
-    int EN_SMALL_CAPTION = 183;
+    int EN_SMALL_CAPTION = 184;
     /** Enumeration constant -- font shorthand */
-    int EN_STATUS_BAR = 184;
+    int EN_STATUS_BAR = 185;
     /** Number of enumeration constants defined */
-    int ENUM_COUNT = 184;
+    int ENUM_COUNT = 185;
 }



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


Re: svn commit: r553612 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/Constants.java

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Jul 5, 2007, at 21:01, adelmelle@apache.org wrote:

Hi all,

> Author: adelmelle
> Date: Thu Jul  5 12:01:14 2007
> New Revision: 553612
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=553612
> Log:
> Fix for a tiny but very nasty bug...

Stumbled upon this little bug while looking at moving the relative  
font-weight computation to a dedicated PropertyMaker.

Seems to have gone unnoticed since there were only checks for  
relative font-weights in the layout test suite, and apparently, there  
it is compensated for (perhaps due to the order in which the tests  
for EN_LIGHTER and EN_100 are performed... on the Property side, they  
seemed to lead to identical hashes for those EnumProperties in  
Richard's implementation of canonical enums.

Just thought I'd share.


Cheers

Andreas