Helge's infamous brackets bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10768 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2006-01-23 10:56:47 +00:00
parent 2fc3845c4e
commit e2cd4d4c44
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-01-23 Helge Hafting <helge.hafting@aitel.hist.no>
* 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 <martin.vermeer@hut.fi> 2006-01-23 Martin Vermeer <martin.vermeer@hut.fi>
* text2.C: fix bug 2015: on screen fonts in nested environments * text2.C: fix bug 2015: on screen fonts in nested environments

View File

@ -476,10 +476,11 @@ void setCounter(Buffer const & buf, ParIterator & it)
--i; --i;
InsetBase * const in = &it[i].inset(); InsetBase * const in = &it[i].inset();
if (in->lyxCode() == InsetBase::FLOAT_CODE if (in->lyxCode() == InsetBase::FLOAT_CODE
|| in->lyxCode() == InsetBase::WRAP_CODE) || in->lyxCode() == InsetBase::WRAP_CODE) {
type = in->getInsetName(); type = in->getInsetName();
break; break;
} }
}
string s; string s;
if (!type.empty()) { if (!type.empty()) {