r14418 by jghali - #8642 : inconsistent use of gWidth versus Width when laying out lines with inline frames

scribus-commit scribus-commit at lists.scribus.net
Wed Dec 16 01:20:37 CET 2009


Revision: 14418
Author: jghali
Date: 2009-12-15T12:59:20.500157Z
Commit message: #8642 : inconsistent use of gWidth versus Width when laying out lines with inline frames

Changeset: 
M  /branches/Version135/Scribus/scribus/pageitem_textframe.cpp

Diffs:
Index: scribus/pageitem_textframe.cpp
===================================================================
--- scribus/pageitem_textframe.cpp	(revision 14417)
+++ scribus/pageitem_textframe.cpp	(revision 14418)
@@ -1134,7 +1134,10 @@
 			oldCurY = layoutGlyphs(*hl, chstr, hl->glyph);
 			// find out width of char
 			if ((hl->ch == SpecialChars::OBJECT) && (hl->embedded.hasItem()))
+			{
 				wide = hl->embedded.getItem()->gWidth + hl->embedded.getItem()->lineWidth();
+				hl->glyph.xadvance = wide;
+			}
 			else
 			{
 				wide = hl->glyph.wide();




More information about the scribus-commit mailing list