]> git.lyx.org Git - lyx.git/blobdiff - src/output_linuxdoc.C
GTK graphics dialog: Default to scaling 100% when no scaling or size is given
[lyx.git] / src / output_linuxdoc.C
index 89958ab06163dcd9bd6dc9eb3ae6aba4a1a0c044..7db9ab81cba3238d03cb6bef0d1fccd94fc58b27 100644 (file)
@@ -45,7 +45,7 @@ void linuxdocParagraphs(Buffer const & buf,
                // treat <toc> as a special case for compatibility with old code
                if (!pit->empty() && pit->isInset(0)) {
                        InsetBase const * inset = pit->getInset(0);
-                       if (inset->lyxCode() == InsetOld::TOC_CODE) {
+                       if (inset->lyxCode() == InsetBase::TOC_CODE) {
                                string const temp = "toc";
                                sgml::openTag(os, temp);
                                continue;
@@ -74,9 +74,10 @@ void linuxdocParagraphs(Buffer const & buf,
                        break;
 
                case LATEX_COMMAND:
+#if 0
                        if (depth != 0)
-                               //error(ErrorItem(_("Error:"), _("Wrong depth for LatexType Command.\n"), pit->id(), 0, pit->size()));
-                               ;
+                               error(ErrorItem(_("Error:"), _("Wrong depth for LatexType Command.\n"), pit->id(), 0, pit->size()));
+#endif
 
                        if (!environment_stack[depth].empty()) {
                                sgml::closeTag(os, environment_stack[depth]);