[LyX/master] Make all unbreakable spaces of the same Color_latex color

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue Jun 23 21:11:57 UTC 2020


commit 49e1466f93b63b0489549d40ebbde944eff1c7f6
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Tue Jun 23 23:33:37 2020 +0200

    Make all unbreakable spaces of the same Color_latex color
    
    Of course, this means that negative spaces cannot be recognized anymore.
---
 src/insets/InsetSpace.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetSpace.cpp b/src/insets/InsetSpace.cpp
index 34ce9b5..3317044 100644
--- a/src/insets/InsetSpace.cpp
+++ b/src/insets/InsetSpace.cpp
@@ -372,8 +372,11 @@ void InsetSpace::draw(PainterInfo & pi, int x, int y) const
 	Color col = Color_special;
 	if (params_.kind == InsetSpaceParams::PROTECTED ||
 	    params_.kind == InsetSpaceParams::ENSPACE ||
+	    params_.kind == InsetSpaceParams::THIN ||
 	    params_.kind == InsetSpaceParams::NEGTHIN ||
+	    params_.kind == InsetSpaceParams::MEDIUM ||
 	    params_.kind == InsetSpaceParams::NEGMEDIUM ||
+	    params_.kind == InsetSpaceParams::THICK ||
 	    params_.kind == InsetSpaceParams::NEGTHICK ||
 	    params_.kind == InsetSpaceParams::CUSTOM_PROTECTED)
 		col = Color_latex;


More information about the lyx-cvs mailing list