]> source.dussan.org Git - poi.git/commitdiff
fixed ordering of columns when reading a HSLF Table
authorYegor Kozlov <yegor@apache.org>
Fri, 19 Jun 2009 05:48:45 +0000 (05:48 +0000)
committerYegor Kozlov <yegor@apache.org>
Fri, 19 Jun 2009 05:48:45 +0000 (05:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@786380 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/model/Table.java

index b8d9f623b46b0cfd33b70ffaa27221a7f0620a9e..d85fa097724c1c1212a339b4af82598ec9e78a6e 100755 (executable)
@@ -155,7 +155,7 @@ public final class Table extends ShapeGroup {
                 Rectangle anchor1 = ((Shape)o1).getAnchor();
                 Rectangle anchor2 = ((Shape)o2).getAnchor();
                 int delta = anchor1.y - anchor2.y;
-                if(delta == 0) delta = anchor1.x - anchor2.y;
+                if(delta == 0) delta = anchor1.x - anchor2.x;
                 return delta;
             }
         });