]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_pimpl.C
Remove unused font variable which caused a warning.
[lyx.git] / src / paragraph_pimpl.C
index 27de45d0ae55505813e54fb461c49575856579e7..182d1165d8d0ef30ff42ea336bdcc7fceae94236 100644 (file)
@@ -208,6 +208,7 @@ void Paragraph::Pimpl::simpleTeXBlanks(std::ostream & os, TexRow & texrow,
                                       int & column, LyXFont const & font,
                                       LyXLayout const & style)
 {
+       if (style.pass_thru) return;
        if (column > tex_code_break_column
            && i 
            && getChar(i - 1) != ' '
@@ -266,6 +267,10 @@ void Paragraph::Pimpl::simpleTeXSpecialChars(Buffer const * buf,
                                             int & column,
                                             Paragraph::value_type const c)
 {
+       if (style.pass_thru) {
+               if (c != '\0') os << c;
+               return;
+       }
        // Two major modes:  LaTeX or plain
        // Handle here those cases common to both modes
        // and then split to handle the two modes separately.