r14426 by jghali - #8642 (2nd round) : inconsistent use of gWidth versus Width when laying out lines with inline frames Adjust glyph advance when glyph horizontal scaling is applied

scribus-commit scribus-commit at lists.scribus.net
Thu Dec 17 23:30:18 CET 2009


Revision: 14426
Author: jghali
Date: 2009-12-17T10:57:01.597024Z
Commit message: #8642 (2nd round) : inconsistent use of gWidth versus Width when laying out lines with inline frames
Adjust glyph advance when glyph horizontal scaling is applied

Changeset: 
M  /trunk/Scribus/scribus/pageitem_textframe.cpp

Diffs:
Index: scribus/pageitem_textframe.cpp
===================================================================
--- scribus/pageitem_textframe.cpp	(revision 14425)
+++ scribus/pageitem_textframe.cpp	(revision 14426)
@@ -1135,7 +1135,7 @@
 			if ((hl->ch == SpecialChars::OBJECT) && (hl->embedded.hasItem()))
 			{
 				wide = hl->embedded.getItem()->gWidth + hl->embedded.getItem()->lineWidth();
-				hl->glyph.xadvance = wide;
+				hl->glyph.xadvance = wide * hl->glyph.scaleH;
 			}
 			else
 			{




More information about the scribus-commit mailing list