Minor re-organization.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32975 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-01-11 18:25:26 +00:00
parent cdd1a5d338
commit bae9393d53

View 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