]> git.lyx.org Git - features.git/blobdiff - src/frontends/LyXView.cpp
This patch solves this crash (due to an assertion):
[features.git] / src / frontends / LyXView.cpp
index 2342882247e88fcb4f65bf3337e0a7eaefe1b00c..6c358ae01470d99cabece1da3f8d3c2409fea682 100644 (file)
@@ -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_ =