]> git.lyx.org Git - lyx.git/commitdiff
restore crucial float information in note insets (bug #9760)
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 15 Sep 2015 20:58:49 +0000 (22:58 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 15 Sep 2015 20:58:49 +0000 (22:58 +0200)
src/insets/InsetText.cpp

index 0558c27e60161cf3bc01ba3a5a9623f4ad092ba5..c4d4f244b203d0c6b6a31ef00ab02415e9b9a891 100644 (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;
        }