Revision: 77
http://openpcl.svn.sourceforge.net/openpcl/?rev=77&view=rev
Author: documentsystems
Date: 2007-06-01 15:02:30 -0700 (Fri, 01 Jun 2007)
Log Message:
-----------
Howard Hoagland. Fixed bug: If the tree root node is the one currently selected, then "Print Remaining" would include the tree root node in the list of pages to print.
Modified Paths:
--------------
openpcl/src/com/openpcl/viewer/printing/PosBuildListOfPagesToPrint.java
Modified: openpcl/src/com/openpcl/viewer/printing/PosBuildListOfPagesToPrint.java
===================================================================
--- openpcl/src/com/openpcl/viewer/printing/PosBuildListOfPagesToPrint.java 2007-05-31 23:58:49 UTC (rev 76)
+++ openpcl/src/com/openpcl/viewer/printing/PosBuildListOfPagesToPrint.java 2007-06-01 22:02:30 UTC (rev 77)
@@ -180,8 +180,11 @@
// that are in the same tree path branch causing nodes to be selected 2 or 3 times via the borrower
// node was selected and the document node was selected and also the page node was selected.
if ( !(pPagesToPrintArrayList.contains(eachPosTreeNode)) ) {
- // then save this viewable page in the print ArrayList
- pPagesToPrintArrayList.add(eachPosTreeNode);
+ // Don't include the root tree node
+ if (eachPosTreeNode.getNodeNumber() > 0) {
+ // then save this viewable page in the print ArrayList
+ pPagesToPrintArrayList.add(eachPosTreeNode);
+ }
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|