diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 7439ae7659..84ba92a959 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -346,6 +346,13 @@ void InsetText::validate(LaTeXFeatures & features) const } +bool InsetText::notifyCursorLeaves(Cursor & cur) { + if(wide()) + cur.updateFlags(cur.disp_.update() | Update::Force); + return false; +} + + void InsetText::cursorPos(BufferView const & bv, CursorSlice const & sl, bool boundary, int & x, int & y) const { diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index cb38e4d574..6d72ec31f1 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -75,6 +75,9 @@ public: int docbook(Buffer const &, odocstream &, OutputParams const &) const; /// void validate(LaTeXFeatures & features) const; + //FIXME The following should be removed when wide is. + /// Overridden to force an update if the inset was wide(). + virtual bool notifyCursorLeaves(Cursor & cur); /// return x,y of given position relative to the inset's baseline void cursorPos(BufferView const & bv, CursorSlice const & sl,