]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiInfo.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiInfo.cpp
index b8ab52c2238e74dd5474f843f1c4e5e13b0ebb7f..cb6c2b549dc87b1d52e85b1516749b95818c941e 100644 (file)
@@ -88,9 +88,8 @@ void GuiInfo::on_nameLE_textChanged(QString const &)
 void GuiInfo::applyView()
 {
        InsetInfo const * ii = dynamic_cast<InsetInfo const *>(inset(INFO_CODE));
-       if (!ii) {
+       if (!ii)
                return;
-       }
        
        dialogToParams();
        docstring const argument = qstring_to_ucs4(type_ + ' ' + name_);
@@ -100,10 +99,6 @@ void GuiInfo::applyView()
        dispatch(FuncRequest(LFUN_INSET_MODIFY, argument));
        // FIXME: update the inset contents
        bufferview()->buffer().updateLabels();
-       BufferView * bv = const_cast<BufferView *>(bufferview());
-       bv->updateMetrics();
-       bv->buffer().changed();
-       bv->buffer().markDirty();
 }