r16553 by jghali - #9907 : incorrect pdf export of page numbers when two page numbers symbol follows

scribus-commit scribus-commit at lists.scribus.net
Wed Apr 6 22:55:39 CEST 2011


Author: jghali
Date: Wed Apr  6 20:55:38 2011
New Revision: 16553

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16553
Log:
#9907 : incorrect pdf export of page numbers when two page numbers symbol follows

Modified:
    branches/Version135/Scribus/scribus/scribusdoc.cpp

Modified: branches/Version135/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16553&path=/branches/Version135/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/scribusdoc.cpp (original)
+++ branches/Version135/Scribus/scribus/scribusdoc.cpp Wed Apr  6 20:55:38 2011
@@ -3066,21 +3066,13 @@
 			}
 			if ((chr == 30) || (chr == 23))
 			{
-				/* CB Removed forced loading of 0-9 for section based numbering
-				for (uint numco = 0x30; numco < 0x3A; ++numco)
-				{
-					if (it->itemText.charStyle(e)->cfont->CharWidth.contains(numco))
-					{
-						gly = it->itemText.charStyle(e)->cfont->GlyphArray[numco].Outlines.copy();
-						it->itemText.charStyle(e)->cfont->RealGlyphs.insert(numco, gly);
-					}
-				}*/
 				//Our page number collection string
 				QString pageNumberText(QString::null);
 				if (chr == 30)
 				{
-					//If not on a master page just get the page number for the page and the text
-					if (lc!=0)
+					if (e > 0 && it->itemText.text(e-1) == SpecialChars::PAGENUMBER)
+						pageNumberText=SpecialChars::ZWNBSPACE;
+					else if (lc!=0) //If not on a master page just get the page number for the page and the text
 						pageNumberText=getSectionPageNumberForPageIndex(it->OwnPage);
 					else
 					{




More information about the scribus-commit mailing list