From e2cd4d4c44f7c604a45dd9de9c9ade0d7c09eefc Mon Sep 17 00:00:00 2001 From: Martin Vermeer Date: Mon, 23 Jan 2006 10:56:47 +0000 Subject: [PATCH] Helge's infamous brackets bug git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10768 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/buffer_funcs.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index d390455456..3e91e1a0c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-01-23 Helge Hafting + * buffer_funcs.C: Trivial fix - added {} around + the statements to be affected by a if-test. Now + label in a minipage in a float looks ok on screen again. + 2006-01-23 Martin Vermeer * text2.C: fix bug 2015: on screen fonts in nested environments diff --git a/src/buffer_funcs.C b/src/buffer_funcs.C index 18e04b835d..d13042f063 100644 --- a/src/buffer_funcs.C +++ b/src/buffer_funcs.C @@ -476,9 +476,10 @@ void setCounter(Buffer const & buf, ParIterator & it) --i; InsetBase * const in = &it[i].inset(); if (in->lyxCode() == InsetBase::FLOAT_CODE - || in->lyxCode() == InsetBase::WRAP_CODE) + || in->lyxCode() == InsetBase::WRAP_CODE) { type = in->getInsetName(); break; + } } string s;