diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 81bd61cef4..a5e2a1f732 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1874,8 +1874,10 @@ void BufferView::gotoLabel(docstring const & label) TocIterator toc_it = toc.begin(); TocIterator end = toc.end(); for (; toc_it != end; ++toc_it) { - if (label == toc_it->str()) + if (label == toc_it->str()) { dispatch(toc_it->action()); + break; + } } //FIXME: We could do a bit more searching thanks to this: //InsetLabel const * inset = buffer_.insetLabel(label); diff --git a/status.16x b/status.16x index a74b653f2a..b445fe3af9 100644 --- a/status.16x +++ b/status.16x @@ -121,6 +121,8 @@ What's new - Fix a crash when closing a window after a document was opened multiple times and each time a new window was opened (bug 6188). +- Fix a crash when navigating to a label in a child document (bug 6252). + - Fix a number of assertions when displaying error messages (bug 6205). - Fix bad allocation exception when displaying long tool tips (bug 6215). @@ -156,6 +158,7 @@ What's new - Fix Ctrl-Shift-Tab shortcut for tabs (bug 6194). + * DOCUMENTATION AND LOCALIZATION - Fix the compilation of the example file powerdot-example.lyx with