]> git.lyx.org Git - features.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>
Fri, 31 Jul 2020 06:29:58 +0000 (08:29 +0200)
Keep spacing of math intact.

(cherry picked from commit b521d36bfbedce9f89b48510409c32860f99559d)

src/mathed/InsetMathColor.cpp
status.23x

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) << '}';
 }
index 080634f74e865b89c5baf09c6685fc6ca1895717..354311af3efe0fa1888875467e965374e703109e 100644 (file)
@@ -51,6 +51,8 @@ What's new
 
 - Fix output of titles in branches and other insets (follow-up to bug 11787).
 
+- Fix spacing in math when using color (bug 11827).
+
 
 * USER INTERFACE