From a50d4710b34776394b13c6538b7cda20ded73fc1 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 22 Feb 2018 00:44:39 -0500 Subject: [PATCH] Fix bug #10895. --- src/insets/InsetCollapsible.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetCollapsible.cpp b/src/insets/InsetCollapsible.cpp index 32c78752d2..078e2dede3 100644 --- a/src/insets/InsetCollapsible.cpp +++ b/src/insets/InsetCollapsible.cpp @@ -276,7 +276,7 @@ void InsetCollapsible::draw(PainterInfo & pi, int x, int y) const } // Do not draw the cue for INSERTED -- it is already in the button and // that's enough. - Changer dummy = (pi.change_.type == Change::INSERTED) + Changer cdummy = (pi.change_.type == Change::INSERTED) ? make_change(pi.change_, Change()) : Changer(); InsetText::draw(pi, textx, texty); @@ -293,9 +293,10 @@ void InsetCollapsible::draw(PainterInfo & pi, int x, int y) const case Corners: textx = x; texty = baseline; - { // We will take care of the frame and the change tracking cue - // ourselves, below. - Changer dummy = make_change(pi.change_, Change()); + // We will take care of the frame and the change tracking cue + // ourselves, below. + { + Changer cdummy = make_change(pi.change_, Change()); const_cast(this)->setDrawFrame(false); InsetText::draw(pi, textx, texty); const_cast(this)->setDrawFrame(true);