commit b0371714a063f8e9ae81207e49bc358783185549
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Mon Jan 13 15:23:32 2020 +0100

    Only show pencil change mark when inset is collapsed
---
 src/insets/InsetCollapsible.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetCollapsible.cpp b/src/insets/InsetCollapsible.cpp
index 8fc49cb..d07123b 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)
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to