]> git.lyx.org Git - features.git/commitdiff
Do not pass thru argument of pass-thru layout literally
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 8 Apr 2013 06:26:49 +0000 (08:26 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 8 Apr 2013 06:26:49 +0000 (08:26 +0200)
src/Paragraph.cpp

index fffcfa54bbba61efb780e4bc69b01b448c2f4bd2..6e6d8f902e86398868bcc6d66e027814bfe1380e 100644 (file)
@@ -1045,7 +1045,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
        Inset * inset = owner_->getInset(i);
        LASSERT(inset, /**/);
 
-       if (style.pass_thru) {
+       if (style.pass_thru && inset->lyxCode() != ARG_CODE) {
                odocstringstream ods;
                inset->plaintext(ods, runparams);
                os << ods.str();