]> git.lyx.org Git - features.git/commitdiff
Make all unbreakable spaces of the same Color_latex color
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Jun 2020 21:33:37 +0000 (23:33 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Jun 2020 21:33:37 +0000 (23:33 +0200)
Of course, this means that negative spaces cannot be recognized anymore.

src/insets/InsetSpace.cpp

index 34ce9b51f652c855b6d8f80dbcfc12748be38e8a..33170448d80daa9dfdd5e37ca6425d75fa96736b 100644 (file)
@@ -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;