]> git.lyx.org Git - features.git/commitdiff
LaTeXParam and Argument do not necessarily exclude each other
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 26 Nov 2012 12:09:54 +0000 (13:09 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 26 Nov 2012 12:09:54 +0000 (13:09 +0100)
src/Paragraph.cpp
src/output_latex.cpp

index c7a39b6ab39da44a88ca87b237ad2c4756274af2..6d19c866c25224e3f02260084716c021cfc69c6a 100644 (file)
@@ -1464,8 +1464,7 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const
                        if (!layout_->latexargs().empty())
                                latexArgInsets(*owner_, os, features.runparams(),
                                               layout_->latexargs());
-                       else
-                               os << from_ascii(layout_->latexparam());
+                       os << from_ascii(layout_->latexparam());
                }
                docstring::size_type const length = ods.str().length();
                // this will output "{" at the beginning, but not at the end
index e680cc7aeb1bfee54a0510ca5a98a52485050981..e211fafb6817808cd366f43780b3ed19d469d7b5 100644 (file)
@@ -409,8 +409,7 @@ void parStartCommand(Paragraph const & par, otexstream & os,
                // Separate handling of optional argument inset.
                if (!style.latexargs().empty())
                        latexArgInsets(par, os, runparams, style.latexargs());
-               else
-                       os << from_ascii(style.latexparam());
+               os << from_ascii(style.latexparam());
                break;
        case LATEX_ITEM_ENVIRONMENT:
        case LATEX_LIST_ENVIRONMENT: