]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
redraw fix 1.
[lyx.git] / src / BufferView2.C
index 7638b0435eb4b0ab0aa74b11671c86242c66e20a..5624b2b324c762619b9cea3f04e736728c86067a 100644 (file)
@@ -611,7 +611,7 @@ int BufferView::unlockInset(UpdatableInset * inset)
                inset->insetUnlock(this);
                theLockingInset(0);
                // make sure we update the combo !
-               owner()->setLayout(getLyXText()->cursor.par()->layout());
+               owner()->setLayout(getLyXText()->cursor.par()->layout()->name());
                // Tell the paragraph dialog that we changed paragraph
                owner()->getDialogs()->updateParagraph();
                finishUndo();