]> git.lyx.org Git - lyx.git/blobdiff - src/trans_mgr.C
more changes, read the Changelog
[lyx.git] / src / trans_mgr.C
index 7fe6879dff1b617e8b590c5e138577b0362416ad..05b84f64a16b1b196fa23aeaf8ef24d17389128a 100644 (file)
@@ -289,13 +289,13 @@ void TransManager::insertVerbatim(string const & str, LyXText * text)
        
        for (int i = 0; i < l; ++i){
                if (str[i] == '\"' 
-                   && text->GetFont(text->cursor.par(),
+                   && text->GetFont(current_view->buffer(),text->cursor.par(),
                                     text->cursor.pos()).latex() == LyXFont::OFF
-                   && text->GetFont(text->cursor.par(),
+                   && text->GetFont(current_view->buffer(),text->cursor.par(),
                                     text->cursor.pos()).language()->lang() != "hebrew")
                        current_view->insertCorrectQuote();
                else
-                       text->InsertChar(str[i]);
+                       text->InsertChar(current_view, str[i]);
        }
 }
 
@@ -314,7 +314,7 @@ void TransManager::insert(string const & str, LyXText * text)
                // Could not find an encoding
                InsetLatexAccent ins(str);
                if (ins.CanDisplay()) {
-                       text->InsertInset(new InsetLatexAccent(ins));
+                       text->InsertInset(current_view, new InsetLatexAccent(ins));
                } else {
                        insertVerbatim(str, text);
                }