From: Richard Heck Date: Mon, 11 Jan 2010 18:25:26 +0000 (+0000) Subject: Minor re-organization. X-Git-Tag: 2.0.0~4419 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bae9393d5372921fd04084f7382f05859c0a26a9;p=features.git Minor re-organization. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32975 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 5564600d06..44f3963dd5 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -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