]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/LyXView.cpp
two small missing bits for rev18468
[lyx.git] / src / frontends / LyXView.cpp
index 380d6dc0bfa80093794da94d3e06cf7ec92d4fbd..6c358ae01470d99cabece1da3f8d3c2409fea682 100644 (file)
@@ -32,7 +32,7 @@
 #include "callback.h"
 #include "LyXFunc.h"
 #include "LyXRC.h"
-#include "LyXText.h"
+#include "Text.h"
 #include "MenuBackend.h"
 #include "Paragraph.h"
 
@@ -196,7 +196,7 @@ void LyXView::connectBuffer(Buffer & buf)
                        boost::bind(&WorkArea::redraw, work_area_));
 
        bufferStructureChangedConnection_ =
-               buf.structureChanged.connect(
+               buf.getMasterBuffer()->structureChanged.connect(
                        boost::bind(&LyXView::updateToc, this));
 
        errorsConnection_ =
@@ -394,7 +394,7 @@ void LyXView::updateLayoutChoice()
 
        // Update the layout display
        if (toolbars_->updateLayoutList(buffer()->params().textclass)) {
-               current_layout = buffer()->params().getLyXTextClass().defaultLayoutName();
+               current_layout = buffer()->params().getTextClass().defaultLayoutName();
        }
 
        BOOST_ASSERT(work_area_);