File: 01_fminfodisplay.cpp.patch

package info (click to toggle)
fontmatrix 0.6.0%2Bsvn20100107-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,024 kB
  • ctags: 7,215
  • sloc: cpp: 37,775; ansic: 14,675; xml: 273; makefile: 122; sh: 97; python: 86; awk: 46
file content (13 lines) | stat: -rw-r--r-- 729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: fontmatrix-0.6.0+svn20100107/src/fminfodisplay.cpp
===================================================================
--- fontmatrix-0.6.0+svn20100107.orig/src/fminfodisplay.cpp	2009-08-03 05:27:37.000000000 -0500
+++ fontmatrix-0.6.0+svn20100107/src/fminfodisplay.cpp	2010-01-09 03:03:13.000000000 -0600
@@ -151,7 +151,7 @@
 				GlyphToSVGHelper gtsh ( gpi->path(), tf );
 				svg += gtsh.getSVGPath() + "\n";
 				horOffset += gpi->data(GLYPH_DATA_HADVANCE).toDouble() * scaleFactor;
-				maxHeight = qMax ( gtsh.getRect().height(), maxHeight );
+				maxHeight = qMax<qreal> ( gtsh.getRect().height(), maxHeight );
 				tf.translate( gpi->data(GLYPH_DATA_HADVANCE).toDouble()  * scaleFactor,0 );
 				delete gpi;
 			}