]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
Properly restore the file encoding after a LaTeX environment with local scope.
[lyx.git] / src / rowpainter.cpp
index 16c3ad7250f7c20bf89693468a68ccfd162a0e98..e1109504bedac2c22ee75d8ee3b8cd61bca3154b 100644 (file)
@@ -22,7 +22,6 @@
 #include "BufferView.h"
 #include "Changes.h"
 #include "Encoding.h"
-#include "support/gettext.h"
 #include "Language.h"
 #include "Layout.h"
 #include "LyXRC.h"
@@ -41,6 +40,7 @@
 #include "insets/InsetText.h"
 
 #include "support/debug.h"
+#include "support/gettext.h"
 #include "support/textutils.h"
 
 #include "support/lassert.h"
@@ -772,7 +772,7 @@ void RowPainter::paintText()
 
                Inset const * inset = par_.getInset(pos);
                bool const highly_editable_inset = inset
-                       && inset->editable() == Inset::HIGHLY_EDITABLE;
+                       && inset->editable();
 
                // If we reach the end of a change or if the author changes, paint it.
                // We also don't paint across things like tables