diff options
authorMiklós Máté <>2016-11-17 21:46:58 (GMT)
committerAlbert Astals Cid <>2016-11-17 21:49:22 (GMT)
commit4520ac7192f5c505e8fed5a14f66df85214f6620 (patch)
parentae6961a63c1d2d9271282a194bb57b219ce9d497 (diff)
Fix comparision between signed and unsignedv16.11.80
REVIEW: 129285 Note by Albert, this is still "broken" since QImage works on ints and the ft slot on uints so technically we should be doing lots of checks when calling scanLine and stuff, but compilers don't complain about that, so let's pretend all is good
1 files changed, 2 insertions, 2 deletions
diff --git a/generators/dvi/TeXFont_PFB.cpp b/generators/dvi/TeXFont_PFB.cpp
index b8d0f64..3a7a95c 100644
--- a/generators/dvi/TeXFont_PFB.cpp
+++ b/generators/dvi/TeXFont_PFB.cpp
@@ -226,9 +226,9 @@ glyph* TeXFont_PFB::getGlyph(quint16 ch, bool generateCharacterPixmap, const QCo
// character outline only using the alpha channel. That
// ensures good quality rendering for overlapping characters.
uchar *srcScanLine = slot->bitmap.buffer;
- for(int row=0; row<slot->bitmap.rows; row++) {
+ for(unsigned int row=0; row<slot->bitmap.rows; row++) {
uchar *destScanLine = imgi.scanLine(row);
- for(int col=0; col<slot->bitmap.width; col++) {
+ for(unsigned int col=0; col<slot->bitmap.width; col++) {
destScanLine[4*col+0] =;
destScanLine[4*col+1] =;
destScanLine[4*col+2] =;