]> git.lyx.org Git - features.git/commitdiff
Do not compile unused code.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 13 Feb 2011 10:08:52 +0000 (10:08 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 13 Feb 2011 10:08:52 +0000 (10:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37634 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.cpp

index b6cebbe04356cfa599ad87ab36ee80a46206d285..417190551b58e137e3ed489ead19d1deb855d3cc 100644 (file)
@@ -1413,15 +1413,14 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                        break;
                }
 
+#if 0
+               // FIXME: The graphics cache no longer has a changeDisplay method.
                string const graphicsbg = lcolor.getLyXName(Color_graphicsbg);
                bool const graphicsbg_changed =
                                lyx_name == graphicsbg && x11_name != graphicsbg;
-               if (graphicsbg_changed) {
-                       // FIXME: The graphics cache no longer has a changeDisplay method.
-#if 0
+               if (graphicsbg_changed)
                        graphics::GCache::get().changeDisplay(true);
 #endif
-               }
 
                if (!lcolor.setColor(lyx_name, x11_name)) {
                        if (current_view_)