]> git.lyx.org Git - lyx.git/blobdiff - src/output_docbook.C
fix crash after removing a table row (again due to uncorrected cursor
[lyx.git] / src / output_docbook.C
index de47d99b0f6d32ad4d133cccaabac94ab59b24ba..a5285e51b185fe7a670f2972e2f9b85ea606a4ba 100644 (file)
@@ -252,8 +252,8 @@ void docbookParagraphs(Buffer const & buf,
        // Close open tags
        for (int d = depth; d >= 0; --d) {
                if (!environment_stack[depth].empty()) {
-                               sgml::closeEnvTags(os, false, environment_inner[depth],
-                                       item_tag, command_depth + depth);
+                       sgml::closeEnvTags(os, false, environment_inner[d], item_tag, command_depth + d);
+                       sgml::closeTag(os, d + command_depth, false, environment_stack[d]);
                }
        }