]> git.lyx.org Git - lyx.git/commitdiff
Fix #11827
authorDaniel Ramoeller <d.lyx@web.de>
Thu, 30 Jul 2020 11:14:51 +0000 (13:14 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 30 Jul 2020 14:24:17 +0000 (16:24 +0200)
Keep spacing of math intact.

src/mathed/InsetMathColor.cpp

index d665734b5182893b7a0da3a58e609bc59c79df12..2d6eb2dc9de1771beb13c71cbf2e846adc82b236 100644 (file)
@@ -100,7 +100,7 @@ void InsetMathColor::write(WriteStream & os) const
                // reset to default color inside another color inset
                os << "{\\normalcolor " << cell(0) << '}';
        else if (oldstyle_)
-               os << "{\\color{" << color_ << '}' << cell(0) << '}';
+               os << "\\begingroup\\color{" << color_ << '}' << cell(0) << "\\endgroup ";
        else
                os << "\\textcolor{" << color_ << "}{" << cell(0) << '}';
 }