From 1357b71db5d04685fabe861c992e13774385820a Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 13 Jan 2020 15:23:32 +0100 Subject: [PATCH] Only show pencil change mark when inset is collapsed --- src/insets/InsetCollapsible.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetCollapsible.cpp b/src/insets/InsetCollapsible.cpp index 8fc49cbc1e..d07123ba2f 100644 --- a/src/insets/InsetCollapsible.cpp +++ b/src/insets/InsetCollapsible.cpp @@ -661,7 +661,8 @@ docstring const InsetCollapsible::buttonLabel(BufferView const & bv) const { // indicate changed content in label (#8645) // ✎ U+270E LOWER RIGHT PENCIL - docstring indicator = isChanged() ? docstring(1, 0x270E) : docstring(); + docstring const indicator = (isChanged() && geometry(bv) == ButtonOnly) + ? docstring(1, 0x270E) : docstring(); InsetLayout const & il = getLayout(); docstring const label = getLabel(); if (!il.contentaslabel() || geometry(bv) != ButtonOnly) -- 2.39.5