[LyX/master] Make the first label reflect the color setting

Koji Yokota yokota at lyx.org
Sun Jun 7 03:14:10 UTC 2026


commit 1d7bb34a11e9e2c9e5344415f1221e76e13a3b6f
Author: Koji Yokota <yokota at lyx.org>
Date:   Sun Jun 7 11:58:35 2026 +0900

    Make the first label reflect the color setting
    
    Please point out if this is an inappropriate fix
---
 src/insets/InsetIndex.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index ed15645a25..4ccd0058eb 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -1002,7 +1002,7 @@ bool InsetIndex::macrosPossible(string const & type) const
 
 ColorCode InsetIndex::labelColor() const
 {
-	if (params_.index.empty() || params_.index == from_ascii("idx"))
+	if (params_.index.empty())
 		return InsetCollapsible::labelColor();
 	// FIXME UNICODE
 	ColorCode c = lcolor.getFromLyXName(to_utf8(params_.index)


More information about the lyx-cvs mailing list