restore crucial float information in note insets (bug #9760)

This commit is contained in:
Juergen Spitzmueller 2015-09-15 22:58:49 +02:00
parent 9b7ccbfc80
commit 02ead6a93a

View File

@ -774,6 +774,9 @@ void InsetText::updateBuffer(ParIterator const & it, UpdateType utype)
// since we are saving and restoring the existing counters, etc.
Counters const savecnt = tclass.counters();
tclass.counters().reset();
// we need float information even in note insets (#9760)
tclass.counters().current_float(savecnt.current_float());
tclass.counters().isSubfloat(savecnt.isSubfloat());
buffer().updateBuffer(it2, utype);
tclass.counters() = savecnt;
}