]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
adjust
[lyx.git] / src / rowpainter.cpp
index 41919b72ee2f298f9e37f4563e371924da63e978..9ed482c9905957b239342b7cbc1595b6dbab79f8 100644 (file)
@@ -16,6 +16,7 @@
 #include "Bidi.h"
 #include "Buffer.h"
 #include "CoordCache.h"
+#include "Color.h"
 #include "Cursor.h"
 #include "debug.h"
 #include "BufferParams.h"
@@ -23,7 +24,7 @@
 #include "Encoding.h"
 #include "gettext.h"
 #include "Language.h"
-#include "Color.h"
+#include "Layout.h"
 #include "LyXRC.h"
 #include "Row.h"
 #include "MetricsInfo.h"
@@ -749,7 +750,7 @@ void RowPainter::paintText()
                }
 
                bool const highly_editable_inset = par_.isInset(pos)
-                       && isHighlyEditableInset(par_.getInset(pos));
+                       && par_.getInset(pos)->editable() == Inset::HIGHLY_EDITABLE;
 
                // If we reach the end of a struck out range, paint it.
                // We also don't paint across things like tables