]> git.lyx.org Git - features.git/commitdiff
Properly check for the value of an enum. Unexpected things will happen whenever the...
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 29 Nov 2010 17:14:38 +0000 (17:14 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 29 Nov 2010 17:14:38 +0000 (17:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36599 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetLabel.cpp

index f07c3cff1f50338fb45de9247d11c938343c11f6..3b1560f673f5d5aff6f8bbeb40e618fa7c6d3d74 100644 (file)
@@ -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();