[LyX/master] Only show pencil change mark when inset is collapsed

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Jan 13 15:18:16 UTC 2020


commit b0371714a063f8e9ae81207e49bc358783185549
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
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)


More information about the lyx-cvs mailing list