summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tqt3/parseFontName.diff
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2012-07-28 17:22:06 -0400
committerRobert Xu <robxu9@gmail.com>2012-07-28 17:22:06 -0400
commit44279fd56aa28d4943b49e516ac791900c561488 (patch)
tree11289e75f32c5324c5f7469141881720af4f57fe /opensuse/core/tqt3/parseFontName.diff
parent48e7f603b222a82ae22d94ecbd6cbba914144f86 (diff)
downloadtde-packaging-44279fd56aa28d4943b49e516ac791900c561488.tar.gz
tde-packaging-44279fd56aa28d4943b49e516ac791900c561488.zip
initial package (failing) of tqt3 for SuSE12.1
Diffstat (limited to 'opensuse/core/tqt3/parseFontName.diff')
-rw-r--r--opensuse/core/tqt3/parseFontName.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/opensuse/core/tqt3/parseFontName.diff b/opensuse/core/tqt3/parseFontName.diff
new file mode 100644
index 000000000..0c612e9be
--- /dev/null
+++ b/opensuse/core/tqt3/parseFontName.diff
@@ -0,0 +1,20 @@
+Index: src/kernel/qfontdatabase.cpp
+===================================================================
+--- src/kernel/qfontdatabase.cpp.orig
++++ src/kernel/qfontdatabase.cpp
+@@ -2476,11 +2476,14 @@ void TQFontDatabase::parseFontName(const
+ int i = name.find('[');
+ int li = name.findRev(']');
+
+- if (i < li) {
++ if (i > 0 && i + 1 < li) {
+ foundry = name.mid(i + 1, li - i - 1);
+ if (name[i - 1] == ' ')
+ i--;
+ family = name.left(i);
++ } else {
++ foundry = TQString::null;
++ family = name;
+ }
+ } else {
+ foundry = TQString::null;