From bae9393d5372921fd04084f7382f05859c0a26a9 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 11 Jan 2010 18:25:26 +0000 Subject: [PATCH] Minor re-organization. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32975 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathMacro.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 -- 2.39.2