From 02ead6a93adc0bacbc774950a9eeaec63db665ea Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 15 Sep 2015 22:58:49 +0200 Subject: [PATCH] restore crucial float information in note insets (bug #9760) --- src/insets/InsetText.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 0558c27e60..c4d4f244b2 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -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; }