]> git.lyx.org Git - features.git/commitdiff
Continuing here will crash us. This shouldn't be an issue, but
authorRichard Heck <rgheck@lyx.org>
Wed, 27 Mar 2013 18:45:16 +0000 (14:45 -0400)
committerRichard Heck <rgheck@lyx.org>
Wed, 27 Mar 2013 18:46:22 +0000 (14:46 -0400)
it seems worth doing something sensible.

src/TocBackend.cpp

index c8bf4adf4853a96911596e1f1b042e416fd0d37e..1df2adc57680124eadb5bc14ba15acff1cb84cc9 100644 (file)
@@ -105,7 +105,7 @@ Toc const & TocBackend::toc(string const & type) const
 {
        // Is the type already supported?
        TocList::const_iterator it = tocs_.find(type);
-       LASSERT(it != tocs_.end(), /**/);
+       LASSERT(it != tocs_.end(), { static Toc dummy; return dummy; });
 
        return it->second;
 }