From: <ai...@us...> - 2008-10-04 22:28:15
|
Revision: 8852 http://plplot.svn.sourceforge.net/plplot/?rev=8852&view=rev Author: airwin Date: 2008-10-04 22:23:53 +0000 (Sat, 04 Oct 2008) Log Message: ----------- Within plGetFam restore initial page status (which is necessarily AT_BOP for current plGetFam usage) after the plP_init call. This solves a bug where pages without a change to pls->page_status (e.g., empty pages and pages which consisted just of text such as the last few pages in example 23) were indirectly turning plP_eop into a no-op for familying because plP_init sets the page_status to AT_EOP. Modified Paths: -------------- trunk/src/plctrl.c Modified: trunk/src/plctrl.c =================================================================== --- trunk/src/plctrl.c 2008-10-04 20:24:08 UTC (rev 8851) +++ trunk/src/plctrl.c 2008-10-04 22:23:53 UTC (rev 8852) @@ -1931,10 +1931,15 @@ PLFLT xpmm_loc, ypmm_loc; if (pls->family) { if (pls->bytecnt > pls->bytemax || pls->famadv) { + PLINT local_page_status = pls->page_status; plP_tidy(); pls->member += pls->finc; pls->famadv = 0; plP_init(); + /* Restore page status (normally AT_BOP) that was changed + * to AT_EOP by plP_init. */ + pls->page_status = local_page_status; + /* Apply compensating factor to original xpmm and ypmm so that * character aspect ratio is preserved when overall aspect ratio * is changed. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |