]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/LyXView.cpp
Make listings dialog translatable (mostly strings from InsetListingsParams), fix...
[lyx.git] / src / frontends / LyXView.cpp
index 22455c1fbf4fb3726979c8b8d5db537294c5e07a..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_ =