From: Vincent van Ravesteijn Date: Mon, 29 Nov 2010 17:14:38 +0000 (+0000) Subject: Properly check for the value of an enum. Unexpected things will happen whenever the... X-Git-Tag: 2.0.0~1614 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f814bb14bbac854ef96d47dddd85d9b92bc71e77;p=features.git Properly check for the value of an enum. Unexpected things will happen whenever the enum itself changes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36599 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetLabel.cpp b/src/insets/InsetLabel.cpp index f07c3cff1f..3b1560f673 100644 --- a/src/insets/InsetLabel.cpp +++ b/src/insets/InsetLabel.cpp @@ -125,7 +125,7 @@ void InsetLabel::updateBuffer(ParIterator const & par, UpdateType utype) buffer().setInsetLabel(label, this); screen_label_ = label; - if (utype) { + if (utype == OutputUpdate) { // save info on the active counter Counters const & cnts = buffer().masterBuffer()->params().documentClass().counters();