Yet another try to fix that font issue on some machines. Added another no-op
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 3 Apr 2008 14:34:55 +0000 (14:34 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 3 Apr 2008 14:34:55 +0000 (14:34 +0000)
that seems to avoid triggering the bug... I can't debug this properly, since everything
I try makes the bug go away, thus I can't grab it... :(
Please let me know if this works for you.

src/uisupport/uistyle.cpp
version.inc

index e04a0bd..79f23c6 100644 (file)
@@ -132,7 +132,7 @@ QString UiStyle::formatCode(FormatType ftype) const {
 UiStyle::StyledText UiStyle::styleString(const QString &_s) {
   QString s = _s;  // we can't use call-by-value since this seems to maybe screw up Qt's implicit sharing somehow
                    // at least invalid formats are created if we do that
 UiStyle::StyledText UiStyle::styleString(const QString &_s) {
   QString s = _s;  // we can't use call-by-value since this seems to maybe screw up Qt's implicit sharing somehow
                    // at least invalid formats are created if we do that
-
+  if(s.startsWith(" ")) {};  // and yet some other stupid no-op that seems to fix the font issue on some machines... -_- 
   StyledText result;
   QList<FormatType> fmtList;
   fmtList.append(None);
   StyledText result;
   QList<FormatType> fmtList;
   fmtList.append(None);
index 3a87606..78c964a 100644 (file)
@@ -5,7 +5,7 @@
 
   quasselVersion = "0.2.0-alpha5-pre";
   quasselDate = "2008-04-03";
 
   quasselVersion = "0.2.0-alpha5-pre";
   quasselDate = "2008-04-03";
-  quasselBuild = 691;
+  quasselBuild = 695;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 642;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 642;