commit f424ba6502b887c86f2985df438374273efdc357
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sat Mar 1 11:41:13 2025 +0100

    Fix resetting of \arrayrulecolor
---
 lib/lyx2lyx/lyx_2_5.py      | 2 +-
 src/insets/InsetTabular.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/lyx2lyx/lyx_2_5.py b/lib/lyx2lyx/lyx_2_5.py
index 18827cc7bc..f5394bc5dc 100644
--- a/lib/lyx2lyx/lyx_2_5.py
+++ b/lib/lyx2lyx/lyx_2_5.py
@@ -1953,7 +1953,7 @@ def revert_colortbl(document):
     goddrowcol = ""
     gevenrowcol = ""
     galtrowstart = ""
-    bordercolor_tex = ""
+    bordercolor_tex = "black"
     i = find_token(document.header, "\\table_border_color", 0)
     if i == -1:
         gbordercol == "default"
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 5f4173e095..413cecc812 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -4003,7 +4003,7 @@ void Tabular::latex(otexstream & os, OutputParams const & 
runparams) const
        if (have_local_border_colors) {
                string outer_border_col = 
buffer().masterParams().table_border_color;
                outer_border_col = (outer_border_col == "default")
-                               ? string()
+                               ? "black"
                                : 
lcolor.getLaTeXName(lcolor.getFromLyXName(outer_border_col));
                os << "\\arrayrulecolor{" << outer_border_col << "}\n";
        }
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to