From 3a544072a522845b192594dd2ab11fcb1fc80eeb Mon Sep 17 00:00:00 2001 From: Daniel Ramoeller Date: Thu, 30 Jul 2020 13:14:51 +0200 Subject: [PATCH] Fix #11827 Keep spacing of math intact. (cherry picked from commit b521d36bfbedce9f89b48510409c32860f99559d) --- src/mathed/InsetMathColor.cpp | 2 +- status.23x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathColor.cpp b/src/mathed/InsetMathColor.cpp index d665734b51..2d6eb2dc9d 100644 --- a/src/mathed/InsetMathColor.cpp +++ b/src/mathed/InsetMathColor.cpp @@ -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) << '}'; } diff --git a/status.23x b/status.23x index 080634f74e..354311af3e 100644 --- a/status.23x +++ b/status.23x @@ -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 -- 2.39.5