commit fe261bc584e487b896cc521f552ec5c51a12209f
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Oct 27 18:24:59 2025 +0100
Fix cell color clearance
---
src/insets/InsetTabular.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index d46858b93b..4c32575274 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -1154,11 +1154,17 @@ void Tabular::updateIndexes()
&& getOddRowColor() != "default" &&
!getOddRowColor().empty())
colors.push_back(getOddRowColor());
}
- for (auto const & color : colors)
+ bool have_col = false;
+ for (auto const & color : colors) {
if (color != "default" &&
lcolor.isKnownLyXName(color)) {
+ have_col = true;
cell_info[row][column].inset->setBackgroundColor(color);
break;
}
+ }
+ if (!have_col)
+ // assure all colors are cleared
+
cell_info[row][column].inset->setBackgroundColor("none");
if (buffer().params().track_changes) {
if (row_info[row].change.changed())
cell_info[row][column].inset->setChange(row_info[row].change);
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs