]> git.lyx.org Git - features.git/blobdiff - src/insets/insetert.C
Finally fixed the problems with clicking on insets
[features.git] / src / insets / insetert.C
index 27ddcdd7d8b95552c7af2e417252b8553948cbc4..ad7cb29f461bd062b0cde651709cf76333747ff8 100644 (file)
@@ -62,3 +62,11 @@ void InsetERT::SetFont(BufferView *, LyXFont const &, bool)
               _("Not permitted to change font-types inside ERT-insets!"),
               _("Sorry."));
 }
+
+void InsetERT::Edit(BufferView * bv, int x, int y, unsigned int button)
+{
+    InsetCollapsable::Edit(bv, x, y, button);
+    LyXFont font(LyXFont::ALL_SANE);
+    font.setLatex (LyXFont::ON);
+    current_font = real_current_font = font;
+}