r16554 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:56:32 CEST 2011


Author: jghali
Date: Wed Apr  6 20:56:32 2011
New Revision: 16554

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

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16554&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Wed Apr  6 20:56:32 2011
@@ -3504,21 +3504,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)
 				{//ch == SpecialChars::PAGENUMBER
-					//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);
 						pageNumberText = QString("%1").arg(getSectionPageNumberForPageIndex(it->OwnPage),




More information about the scribus-commit mailing list