r15012 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:38 CEST 2010


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

Changeset: 
M  /trunk/Scribus/scribus/fonts/scface.cpp

Diffs:
Index: scribus/fonts/scface.cpp
===================================================================
--- scribus/fonts/scface.cpp	(revision 15011)
+++ scribus/fonts/scface.cpp	(revision 15012)
@@ -48,7 +48,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