From: Stefan Schimanski Date: Tue, 4 Mar 2008 14:57:34 +0000 (+0000) Subject: * the look does not depent on "editing" anymore as the edit-layout is dynamic. X-Git-Tag: 1.6.10~5892 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8aac28367e2ce40ec0cfdc711228fe5a74af1f36;p=features.git * the look does not depent on "editing" anymore as the edit-layout is dynamic. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23450 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index d946fcd265..ff296e80b5 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -465,7 +465,7 @@ void MathMacroTemplate::updateToContext(MacroContext const & mc) const } -void MathMacroTemplate::updateLook(bool editing) const +void MathMacroTemplate::updateLook() const { lookOutdated_ = true; } @@ -609,7 +609,7 @@ void MathMacroTemplate::draw(PainterInfo & pi, int x, int y) const void MathMacroTemplate::edit(Cursor & cur, bool front, EntryDirection entry_from) { - updateLook(true); + updateLook(); cur.updateFlags(Update::SinglePar); InsetMathNest::edit(cur, front, entry_from); } diff --git a/src/mathed/MathMacroTemplate.h b/src/mathed/MathMacroTemplate.h index ec87fe6042..80a0f9acba 100644 --- a/src/mathed/MathMacroTemplate.h +++ b/src/mathed/MathMacroTemplate.h @@ -132,7 +132,7 @@ private: /// idx_type displayIdx() const { return optionals_ + 2; } /// - void updateLook(bool editing = false) const; + void updateLook() const; /// look through the macro for #n arguments int maxArgumentInDefinition() const; /// add missing #n arguments up to \c maxArg