From: <doc...@us...> - 2007-08-17 19:08:06
|
Revision: 146 http://openpcl.svn.sourceforge.net/openpcl/?rev=146&view=rev Author: documentsystems Date: 2007-08-17 12:08:07 -0700 (Fri, 17 Aug 2007) Log Message: ----------- Howard Hoagland. Deleted the 2 lines to not throw the IndexOutOfBoundsException when the passed in page number is used to get the page objet out of the ArrayList of pages. This is in preparation for implementing print duplexing for Windows print, because for duplexing, the total pages to print will have to be pre calculated before calling PrinterJob.print() and then number of pages will include the blank page image on the back of some pages. Example: 10 pages but 14 sides where 4 of them are blank pages on the back and 3 real pages print on the back side of the paper. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/printing/PosPrintPageableInterface.java Modified: openpcl/src/com/openpcl/viewer/printing/PosPrintPageableInterface.java =================================================================== --- openpcl/src/com/openpcl/viewer/printing/PosPrintPageableInterface.java 2007-08-06 22:10:34 UTC (rev 145) +++ openpcl/src/com/openpcl/viewer/printing/PosPrintPageableInterface.java 2007-08-17 19:08:07 UTC (rev 146) @@ -91,8 +91,6 @@ mPosTreeNode = mPagesToPrintArrayList.get(pForPageNumber); } catch (IndexOutOfBoundsException e) { mPosTreeNode = null; - throw new IndexOutOfBoundsException( - makeIndexOutOfBoundsInfoString(pForPageNumber, mNumberOfPages)); } if (mPosTreeNode == null) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |