]> git.lyx.org Git - lyx.git/blobdiff - src/output_docbook.cpp
fix a crash when the inset containing the new word at cursor is deleted
[lyx.git] / src / output_docbook.cpp
index 4dc6048d5b92804d5faafe8a25a892c9e93e4c80..b6f7d33daeee42456238fce033bb8124544cec4b 100644 (file)
@@ -17,6 +17,7 @@
 #include "buffer_funcs.h"
 #include "BufferParams.h"
 #include "Counters.h"
+#include "Font.h"
 #include "Layout.h"
 #include "OutputParams.h"
 #include "Paragraph.h"
@@ -260,7 +261,7 @@ ParagraphList::const_iterator makeCommand(Buffer const & buf,
        if (!bstyle.labeltag().empty()) {
                sgml::openTag(os, bstyle.labeltag());
                // We don't care about appendix in DOCBOOK.
-               os << par->expandLabel(bstyle, buf.params(), false);
+               os << par->expandDocBookLabel(bstyle, buf.params());
                sgml::closeTag(os, bstyle.labeltag());
        }