]> git.lyx.org Git - features.git/commitdiff
* the look does not depent on "editing" anymore as the edit-layout is dynamic.
authorStefan Schimanski <sts@lyx.org>
Tue, 4 Mar 2008 14:57:34 +0000 (14:57 +0000)
committerStefan Schimanski <sts@lyx.org>
Tue, 4 Mar 2008 14:57:34 +0000 (14:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23450 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacroTemplate.cpp
src/mathed/MathMacroTemplate.h

index d946fcd26583ce69cb6dabdc99b5f05ecbb19f4d..ff296e80b56f387877044924b862d27bd3d6d9a5 100644 (file)
@@ -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);
 }
index ec87fe6042f2dfcd3ecd5591a5d8cee28ba62c0e..80a0f9acba6adcf68316478cd50faf2382d30301 100644 (file)
@@ -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