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,12 +307,9 @@ void MathMacro::updateRepresentation()
// update requires
requires_ = macro_->requires();
if (!needsUpdate_
// non-normal mode? We are done!
if (displayMode_ != DISPLAY_NORMAL)
return;
// macro changed?
if (!needsUpdate_)
|| (displayMode_ != DISPLAY_NORMAL))
return;
needsUpdate_ = false;