]> git.lyx.org Git - features.git/blobdiff - src/BufferView2.C
Add latex_language and remove inherit_language
[features.git] / src / BufferView2.C
index c130c1d51fe963b65a9be75103386315ccb4f808..faf26c0d291b9533f0a5e41ab9193b657352ffd7 100644 (file)
@@ -420,8 +420,7 @@ void BufferView::showLockedInsetCursor(int x, int y, int asc, int desc)
                                        cursor.par(), cursor.pos() - 1);
                LyXScreen::Cursor_Shape shape = LyXScreen::BAR_SHAPE;
                LyXText * txt = getLyXText();
-               if (theLockingInset()->getLockingInset()->lyxCode() ==
-                   Inset::TEXT_CODE &&
+               if (theLockingInset()->getLockingInset()->isTextInset() &&
                    (txt->real_current_font.language() !=
                     buffer()->params.language
                     || txt->real_current_font.isVisibleRightToLeft()