]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.cpp
We do not need to update just because the class has been changed.
[lyx.git] / src / frontends / qt4 / GuiDocument.cpp
index a2f2d67315b0cb12db7de0587ee6839f96b787c4..872cb4499f8c1607c7a30468ececae06dbb7e988 100644 (file)
@@ -1188,9 +1188,10 @@ void GuiDocument::classChanged()
 {
        textclass_type const tc = latexModule->classCO->currentIndex();
        bp_.setBaseClass(tc);
-       if (lyxrc.auto_reset_options)
+       if (lyxrc.auto_reset_options) {
                bp_.useClassDefaults();
-       updateContents();
+               updateContents();
+       }
 }