diff options
author | albator <albator@aria.vtf> | 2011-09-04 16:45:16 +0200 |
---|---|---|
committer | albator <albator@aria.vtf> | 2011-09-04 16:45:16 +0200 |
commit | 9763eb1822a7e4e9220c2cd006b73c25af53f4f5 (patch) | |
tree | 1adcbb55194d9650157e7160236ac8a78b7e4f21 /redhat/dependencies/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch | |
parent | 8bb54d3c34809687b683704dbea4efdd7e344740 (diff) | |
download | tde-packaging-9763eb1822a7e4e9220c2cd006b73c25af53f4f5.tar.gz tde-packaging-9763eb1822a7e4e9220c2cd006b73c25af53f4f5.zip |
Initial QT3 build for RHEL 6
Based on original RHEL 6 qt3 3.3.8b RPM.
Diffstat (limited to 'redhat/dependencies/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch')
-rw-r--r-- | redhat/dependencies/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redhat/dependencies/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch b/redhat/dependencies/qt3/qt-3.3.6-fontrendering-ml_IN-217657.patch new file mode 100644 index 000000000..eb880b1cc --- /dev/null +++ b/redhat/dependencies/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 ); |