kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04046
MacOSX: pcbnew trys to print 9999 pages
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"emmedics4" <marco.serantoni@...>
-
Date:
Sun, 24 Jan 2010 15:02:37 -0000
-
User-agent:
eGroups-EW/0.82
bool HasPage(int pageNum)
Should be overridden to return true if the document has this page, or falseif not. Returning false signifies the end of the document. By default, HasPage behaves as if the document has only one page.
-
With the always true, OSX tried to print 9999 pages, a bit slower :)
Index: pcbnew/printout_controler.h
===================================================================
--- pcbnew/printout_controler.h (revision 2258)
+++ pcbnew/printout_controler.h (working copy)
@@ -60,7 +60,7 @@
bool OnPrintPage( int page );
- bool HasPage( int page ) { return true; } // do not test page num
+ bool HasPage( int page ) { if (page <= m_PrintParams.m_PageCount) return true; else return false; } // do not test page num
void GetPageInfo( int* minPage, int* maxPage, int* selPageFrom, int* selPageTo );
void DrawPage();