]> git.lyx.org Git - features.git/commitdiff
Minor re-organization.
authorRichard Heck <rgheck@comcast.net>
Mon, 11 Jan 2010 18:25:26 +0000 (18:25 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 11 Jan 2010 18:25:26 +0000 (18:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32975 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacro.cpp

index 5564600d06487f06ed46261486e9ed608e80eaa3..44f3963dd59d9545681ef032a911261a578f8b9d 100644 (file)
@@ -307,14 +307,11 @@ void MathMacro::updateRepresentation()
        // update requires
        requires_ = macro_->requires();
        
-       // non-normal mode? We are done!
-       if (displayMode_ != DISPLAY_NORMAL)
+       if (!needsUpdate_
+               // non-normal mode? We are done!
+               || (displayMode_ != DISPLAY_NORMAL))
                return;
 
-       // macro changed?
-       if (!needsUpdate_)
-               return;
-       
        needsUpdate_ = false;
        
        // get default values of macro