r22221 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 20 19:41:36 UTC 2017


Author: jghali
Date: Mon Nov 20 19:41:36 2017
New Revision: 22221

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22221
Log:
#15044: Incorrect tabulation in numbered headings

Modified:
    trunk/Scribus/scribus/pageitem_textframe.cpp

Modified: trunk/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22221&path=/trunk/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_textframe.cpp	(original)
+++ trunk/Scribus/scribus/pageitem_textframe.cpp	Mon Nov 20 19:41:36 2017
@@ -2528,7 +2528,11 @@
 					for (int j = 0; j < current.glyphs.size(); j++)
 					{
 						if (j != currentIndex)
-							current.glyphs[j].extraWidth = 0.0;
+						{
+							GlyphCluster& currentGlyph = current.glyphs[j];
+							current.xPos -= currentGlyph.extraWidth;
+							currentGlyph.extraWidth = 0.0;
+						}
 					}
 				}
 				// set the offset for Drop Cap, Bullet & Number List




More information about the scribus-commit mailing list