diff options
author | François Andriot <[email protected]> | 2015-04-12 10:11:01 +0200 |
---|---|---|
committer | François Andriot <[email protected]> | 2015-04-12 10:11:01 +0200 |
commit | a4937b110c2c19699a179e4ae17b5d3864168561 (patch) | |
tree | 5c54e70b81bb074f994a678e667231cddc88892f /opensuse/core/qt3/patches/3.5.13.2/parseFontName.diff | |
parent | bb94b933beb07ad9ebe9af255ee2fa8d91df7896 (diff) | |
download | tde-packaging-a4937b110c2c19699a179e4ae17b5d3864168561.tar.gz tde-packaging-a4937b110c2c19699a179e4ae17b5d3864168561.zip |
RPM Packaging: update QT3
Diffstat (limited to 'opensuse/core/qt3/patches/3.5.13.2/parseFontName.diff')
-rw-r--r-- | opensuse/core/qt3/patches/3.5.13.2/parseFontName.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/opensuse/core/qt3/patches/3.5.13.2/parseFontName.diff b/opensuse/core/qt3/patches/3.5.13.2/parseFontName.diff new file mode 100644 index 000000000..d6ad66602 --- /dev/null +++ b/opensuse/core/qt3/patches/3.5.13.2/parseFontName.diff @@ -0,0 +1,18 @@ +--- src/kernel/qfontdatabase.cpp ++++ src/kernel/qfontdatabase.cpp +@@ -2476,11 +2476,14 @@ void QFontDatabase::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 = QString::null; ++ family = name; + } + } else { + foundry = QString::null; |