r15011 by jghali - #9053: text alignment doesn't work with some fonts if an automatic page number is inserted

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 24 23:20:21 CEST 2010


Revision: 15011
Author: jghali
Date: 2010-04-24T21:15:19.465456Z
Commit message: #9053: text alignment doesn't work with some fonts if an automatic page number is inserted

Changeset: 
M  /branches/Version135/Scribus/scribus/fonts/scface.cpp

Diffs:
Index: scribus/fonts/scface.cpp
===================================================================
--- scribus/fonts/scface.cpp	(revision 15010)
+++ scribus/fonts/scface.cpp	(revision 15011)
@@ -52,7 +52,7 @@
 	GlyphMetrics res;
 	if (gl == 0 || gl >= CONTROL_GLYPHS)
 	{	res.width   = glyphWidth(gl, sz);
-		res.ascent  = (gl == 0? sz : 0);
+		res.ascent  = (gl == 0? ascent(sz) : 0);
 		res.descent = 0;
 		return res;
 	}




More information about the scribus-commit mailing list