]> git.lyx.org Git - lyx.git/blobdiff - src/Changes.cpp
GuiView::findOrBuild(): hide the dialog if requested and the dialog already exists.
[lyx.git] / src / Changes.cpp
index d31301df0ad9edc4f920a9bbac343743a8078e7b..cbdbc269f6eb6ef446e0203f673cc11ca556a089 100644 (file)
@@ -413,7 +413,7 @@ void Changes::addToToc(DocIterator const & cdit, Buffer const & buffer) const
                dit.pos() = it->range.start;
                str += " " + dit.paragraph().asString(it->range.start, it->range.end);
                docstring const & author = author_list.get(it->change.author).name();
-               Toc::const_iterator it = change_list.item(0, author);
+               Toc::iterator it = change_list.item(0, author);
                if (it == change_list.end()) {
                        change_list.push_back(TocItem(dit, 0, author));
                        change_list.push_back(TocItem(dit, 1, str));