]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
* sk.po
[lyx.git] / src / CutAndPaste.cpp
index b8e69ee0586eab0f4bc44335233504b79cd7044e..99f8383e6b027abf14a4fa222942e182cb34ccf8 100644 (file)
@@ -537,7 +537,7 @@ void copySelectionHelper(Buffer const & buf, Text const & text,
                // PassThru paragraphs have the Language
                // latex_language. This is invalid for others, so we
                // need to change it to the buffer language.
-               if (text.inset().getLayout().isPassThru())
+               if (it->isPassThru())
                        it->changeLanguage(buf.params(), 
                                           latex_language, buf.language());
        }