summaryrefslogtreecommitdiffstats
path: root/redhat/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch
diff options
context:
space:
mode:
authoralbator <albator@arcadia.vtf>2011-11-06 09:19:14 +0100
committeralbator <albator@arcadia.vtf>2011-11-06 09:19:14 +0100
commitf4c0c862cd063f006d2028e84c97f559a3ecf26f (patch)
tree2e72302f5a7db2a5fd78ef55be0b25b8f26e997e /redhat/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch
parent70bc259aa3f4dbd83bd239030690759449ee714b (diff)
downloadtde-packaging-f4c0c862cd063f006d2028e84c97f559a3ecf26f.tar.gz
tde-packaging-f4c0c862cd063f006d2028e84c97f559a3ecf26f.zip
Moves QT3 at in root directory instead of "dependancies"
Diffstat (limited to 'redhat/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch')
-rw-r--r--redhat/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/redhat/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch b/redhat/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch
new file mode 100644
index 000000000..eb880b1cc
--- /dev/null
+++ b/redhat/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch
@@ -0,0 +1,12 @@
+diff -pruN qt-x11-free-3.3.6.org/src/kernel/qfont_x11.cpp qt-x11-free-3.3.6/src/kernel/qfont_x11.cpp
+--- qt-x11-free-3.3.6.org/src/kernel/qfont_x11.cpp 2006-03-08 00:00:00.000000000 +0530
++++ qt-x11-free-3.3.6/src/kernel/qfont_x11.cpp 2006-12-04 18:49:09.000000000 +0530
+@@ -709,7 +709,7 @@ int QFontMetrics::charWidth( const QStri
+ if ( script >= QFont::Arabic && script <= QFont::Khmer ) {
+ // complex script shaping. Have to do some hard work
+ int from = QMAX( 0, pos - 8 );
+- int to = QMIN( (int)str.length(), pos + 8 );
++ int to = str.length();
+ QConstString cstr( str.unicode()+from, to-from);
+ QTextEngine layout( cstr.string(), d );
+ layout.itemize( QTextEngine::WidthOnly );