From: Richard Heck Date: Sun, 24 Feb 2008 00:38:54 +0000 (+0000) Subject: Fix drawing error on Linux, apprently caused by creation of static global instance... X-Git-Tag: 1.6.10~6130 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=14b7f34818519edad75b8aab968ed5e43e9f3af5;p=features.git 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 --- 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