From: Jean-Marc Lasgouttes Date: Mon, 13 Jan 2020 14:23:32 +0000 (+0100) Subject: Only show pencil change mark when inset is collapsed X-Git-Tag: lyx-2.4.0dev-acb2ca7b~1324 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b0371714a063f8e9ae81207e49bc358783185549;p=features.git Only show pencil change mark when inset is collapsed --- 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)