]> git.lyx.org Git - features.git/commitdiff
Fix drawing error on Linux, apprently caused by creation of static global instance...
authorRichard Heck <rgheck@comcast.net>
Sun, 24 Feb 2008 00:38:54 +0000 (00:38 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 24 Feb 2008 00:38:54 +0000 (00:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23171 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiCompleter.cpp

index e9df32264deb9a3af1427d78e308c93d29fb5542..0576d2866b13c9174f8114395023f72ee852737e 100644 (file)
@@ -58,8 +58,6 @@ protected:
        }
 };
 
-RtlItemDelegate rtlItemDelegate;
-
 
 class PixmapItemDelegate : public QItemDelegate {
 public:
@@ -412,7 +410,7 @@ void GuiCompleter::updateModel(Cursor & cur, bool popupUpdate, bool inlineUpdate
 
        // turn the direction of the strings in the popup.
        // Qt does not do that itself.
-       popup()->setItemDelegateForColumn(0, rtl ? &rtlItemDelegate : 0);
+       popup()->setItemDelegateForColumn(0, rtl ? new RtlItemDelegate : 0);
 
        // set new model
        Inset::CompletionList const * list