]> git.lyx.org Git - features.git/commit
Fix bug discovered by Kornel. See
authorRichard Heck <rgheck@lyx.org>
Mon, 27 Jan 2014 19:58:21 +0000 (14:58 -0500)
committerRichard Heck <rgheck@lyx.org>
Wed, 29 Jan 2014 16:23:03 +0000 (11:23 -0500)
commit3f62601a8f7fc2b5df7c6ecc54a2c331a0264290
treead2ceab4a893db3fd5bcad547fd3d29ad9ed3e99
parentf9de88c53cfa0e11da1b48337606ccb25d8549bf
Fix bug discovered by Kornel. See
http://marc.info/?l=lyx-devel&m=138590578911716&w=2
If you look at Buffer.cpp, around line 4351, there was a comment about bug 5699. We are seeing the
same crash. The problem is that, although the master does have a GUI, that GUI is in a different window. So the structureChanged() call we do during updateBuffer() is for the TOC in that window, not the TOC in the window we are actually in. So our TocModel::toc_ has been reset and is invalid, though the widget itself has not been updated and looks fine.

This patch tests whether the master is in the same window as the buffer we are updating.

A problem remains, which is noted in a comment.
src/Buffer.cpp