]> git.lyx.org Git - lyx.git/commitdiff
Fix change tracking colors with RTL languages (#12923)
authorUdi Fogiel <ufogiel@lyx.org>
Mon, 10 Jun 2024 12:19:08 +0000 (15:19 +0300)
committerUdi Fogiel <ufogiel@lyx.org>
Mon, 10 Jun 2024 12:20:16 +0000 (15:20 +0300)
(cherry picked from commit a5749b9c1f5c5b42e6d6db7cd9f2aab16bc28f5b)

src/LaTeXFeatures.cpp

index 4a4385fc015a2ccf616e3cf9103c1493d0120bc2..e68f850d0a56106ff36fdadce0558eab5f7d331b 100644 (file)
@@ -208,8 +208,8 @@ static docstring const lyxdot_def = from_ascii(
 
 static docstring const changetracking_xcolor_ulem_base_def = from_ascii(
        "%% Change tracking with ulem and xcolor: base macros\n"
-       "\\DeclareRobustCommand{\\mklyxadded}[1]{\\bgroup\\color{lyxadded}{}#1\\egroup}\n"
-       "\\DeclareRobustCommand{\\mklyxdeleted}[1]{\\bgroup\\color{lyxdeleted}\\mklyxsout{#1}\\egroup}\n"
+       "\\DeclareRobustCommand{\\mklyxadded}[1]{\\textcolor{lyxadded}\\bgroup#1\\egroup}\n"
+       "\\DeclareRobustCommand{\\mklyxdeleted}[1]{\\textcolor{lyxdeleted}\\bgroup\\mklyxsout{#1}\\egroup}\n"
        "\\DeclareRobustCommand{\\mklyxsout}[1]{\\ifx\\\\#1\\else\\sout{#1}\\fi}\n");
 
 static docstring const changetracking_xcolor_ulem_def = from_ascii(