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

Koji Yokota <[email protected]> Sun, 07 Jun 2026 03:14:10 +0000
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit 1d7bb34a11e9e2c9e5344415f1221e76e13a3b6f
Author: Koji Yokota <[email protected]>
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)
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs