Sophie

Sophie

distrib > Mandriva > 7.2 > i586 > by-pkgid > 0d52fc78258657de28704eeb7635e115 > files > 1

qt2-2.2.1-3mdk.src.rpm

Index: qpsprinter.cpp
===================================================================
RCS file: /home/kde/qt-copy/src/kernel/qpsprinter.cpp,v
retrieving revision 1.20
diff -u -p -r1.20 qpsprinter.cpp
--- src/kernel/qpsprinter.cpp	2000/10/06 19:46:54	1.20
+++ src/kernel/qpsprinter.cpp	2000/10/23 20:05:01
@@ -1742,13 +1742,10 @@ static const struct {
     { QFont::ISO_8859_8, 85 },
     { QFont::ISO_8859_10, 13 },
     { QFont::ISO_8859_11, 2259 }, // aka tis620
-#if 0
-    // ### needs mibs for these.
-    { QFont::ISO_8859_12, 0 },
-    { QFont::ISO_8859_13, 0 },
-    { QFont::ISO_8859_14, 0 },
-    { QFont::ISO_8859_15, 0 },
-#endif
+    // ### don't have any MIB for -12: { QFont::ISO_8859_12, 0 },
+    { QFont::ISO_8859_13, 109 },
+    { QFont::ISO_8859_14, 110 },
+    { QFont::ISO_8859_15, 111 },
     // makeFixedStrings() below assumes that this is last
     { QFont::ISO_8859_9, 12 }
 };
@@ -2303,9 +2300,9 @@ QByteArray compress( const QImage & imag
 #endif
 		    start = None;
 		}
-		if ( start < index - tableSize )
+		if ( start < index - tableSize || start < 0 )
 		    start = None;
-		if ( end < index - tableSize + bestLength )
+		if ( end < index - tableSize + bestLength || end < bestLength )
 		    end = None;
 	    }
 	    if ( start != None && end != None ) {