X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextClass.cpp;h=469cfafff4a857929f4b96e8684b5902121a30ac;hb=dab71087cf2954b77d3d2c0e67b868f9be82fba9;hp=eb92612d847b6d9bad0ead06aa018324b53164fe;hpb=20a33941fa04f01454d6474db682072e27f2b9ac;p=lyx.git diff --git a/src/TextClass.cpp b/src/TextClass.cpp index eb92612d84..469cfafff4 100644 --- a/src/TextClass.cpp +++ b/src/TextClass.cpp @@ -62,7 +62,7 @@ namespace lyx { // You should also run the development/tools/updatelayouts.py script, // to update the format of all of our layout files. // -int const LAYOUT_FORMAT = 82; // dourouc05: DocBook additions. +int const LAYOUT_FORMAT = 83; // tcuvelier: DocBookWrapperMergeWithPrevious. // Layout format for the current lyx file format. Controls which format is @@ -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;