From 14b7f34818519edad75b8aab968ed5e43e9f3af5 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 24 Feb 2008 00:38:54 +0000 Subject: [PATCH] Fix drawing error on Linux, apprently caused by creation of static global instance of QItemDelegate. Fix due to STS. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23171 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiCompleter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontends/qt4/GuiCompleter.cpp b/src/frontends/qt4/GuiCompleter.cpp index e9df32264d..0576d2866b 100644 --- a/src/frontends/qt4/GuiCompleter.cpp +++ b/src/frontends/qt4/GuiCompleter.cpp @@ -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 -- 2.39.2