* InsetWrap (updateLabels):

- use master buffer if necessary (fixes bug 5431).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27226 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-11-02 16:49:48 +00:00
parent 13cf13c690
commit 10e05161fb

View File

@ -119,7 +119,8 @@ bool InsetWrap::getStatus(Cursor & cur, FuncRequest const & cmd,
void InsetWrap::updateLabels(ParIterator const & it)
{
setLabel(_("wrap: ") + floatName(params_.type, buffer().params()));
Counters & cnts = buffer().params().documentClass().counters();
Counters & cnts =
buffer().masterBuffer()->params().documentClass().counters();
string const saveflt = cnts.current_float();
// Tell to captions what the current float is