-void TransManager::insertVerbatim(string const & str, LyXText * text)
-{
- string::size_type const l = str.length();
-
- for (string::size_type i = 0; i < l; ++i) {
- if (str[i] == '\"'
- && text->GetFont(current_view->buffer(),text->cursor.par(),
- text->cursor.pos()).latex() == LyXFont::OFF
- && text->GetFont(current_view->buffer(),text->cursor.par(),
- text->cursor.pos()).language()->lang() != "hebrew")
- current_view->insertCorrectQuote();
- else
- text->InsertChar(current_view, str[i]);
- }
+void TransManager::insertVerbatim(string const & str, LyXText * text, LCursor & cur)
+{
+ for (string::size_type i = 0, n = str.size(); i < n; ++i)
+ text->insertChar(cur, str[i]);