Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
KDE:KDE3
qt3
parseFontName.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File parseFontName.diff of Package qt3
--- src/kernel/qfontdatabase.cpp +++ src/kernel/qfontdatabase.cpp @@ -2470,11 +2470,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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor