]> git.lyx.org Git - features.git/blobdiff - src/text3.C
Free BufferView from LyXView!
[features.git] / src / text3.C
index 823eb16eb4c92f1e1ce36bde8f711ee7d6941851..3e1e365af76d431722f3923bacc0bc2999d55b71 100644 (file)
@@ -47,8 +47,7 @@
 #include "vspace.h"
 #include "pariterator.h"
 
-#include "frontends/Dialogs.h"
-#include "frontends/LyXView.h"
+#include "frontends/Application.h"
 #include "frontends/Clipboard.h"
 #include "frontends/Selection.h"
 
@@ -874,7 +873,8 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                if (change_layout) {
                        current_layout = layout;
                        setLayout(cur, layout);
-                       bv->owner()->setLayout(layout);
+                       // inform the GUI that the layout has changed.
+                       bv->layoutChanged(layout);
                        bv->switchKeyMap();
                }
                break;
@@ -1048,8 +1048,6 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                        theApp->selection().haveSelection(cur.selection());
 
                bv->switchKeyMap();
-               bv->owner()->updateMenubar();
-               bv->owner()->updateToolbars();
                break;
        }