FIXME for Andr�

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9618 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-02-13 14:53:47 +00:00
parent 9b7c320e46
commit fffd364418

View File

@ -791,6 +791,7 @@ void LyXText::setCounter(Buffer const & buf, pit_type pit)
bool isOK = false;
while (tmppit != end) {
in = pars_[tmppit].inInset();
// FIXME: in should be always valid.
if (in &&
(in->lyxCode() == InsetBase::FLOAT_CODE ||
in->lyxCode() == InsetBase::WRAP_CODE)) {