]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
DocBook: add a layout tag to tell whether an item is the abstract or not.
[lyx.git] / src / TextClass.cpp
index 79cdabd86996f5d5ad5935069c096bdd2f844382..469cfafff4a857929f4b96e8684b5902121a30ac 100644 (file)
@@ -92,7 +92,7 @@ bool layout2layout(FileName const & filename, FileName const & tempfile,
        LYXERR(Debug::TCLASS, "Running `" << command_str << '\'');
 
        cmd_ret const ret = runCommand(command_str);
-       if (ret.first != 0) {
+       if (!ret.valid) {
                if (format == LAYOUT_FORMAT)
                        LYXERR0("Conversion of layout with layout2layout.py has failed.");
                return false;