]> git.lyx.org Git - features.git/commitdiff
Only show pencil change mark when inset is collapsed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Jan 2020 14:23:32 +0000 (15:23 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Jan 2020 15:35:15 +0000 (16:35 +0100)
src/insets/InsetCollapsible.cpp

index 8fc49cbc1ef90c0987cc8be88211e912faeee23e..d07123ba2fa8f8393e7a53a937778805fc77415d 100644 (file)
@@ -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)