]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
ws changes and some cruft removal, slight cleanup
[lyx.git] / src / BufferView2.C
index 9ed1e8720ee2b702b2ec4d1f04b010d462f49fd1..247290b26bf7724ef8e3b60506c4ffb397d78fec 100644 (file)
@@ -601,7 +601,7 @@ int BufferView::unlockInset(UpdatableInset * inset)
                inset->insetUnlock(this);
                theLockingInset(0);
                // make sure we update the combo !
-               owner()->setLayout(getLyXText()->cursor.par()->getLayout());
+               owner()->setLayout(getLyXText()->cursor.par()->layout());
                finishUndo();
                return 0;
        } else if (inset && theLockingInset() &&
@@ -658,9 +658,9 @@ bool BufferView::ChangeInsets(Inset::Code code,
                }
                if (changed_inset) {
                        need_update = true;
-#ifdef WITH_WARNINGS
-#warning FIXME
-#endif
+
+                       // FIXME
+                       
                        // The test it.size()==1 was needed to prevent crashes.
                        // How to set the cursor corretly when it.size()>1 ??
                        if (it.size() == 1) {