- use another color for negative spaces to be able to distinguish it from "normal" positive one
- don't swap the inset drawing as this inconsistent to the other negative spaces and the ones in math mode
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25544
a592a061-630c-0410-9148-
cb99ea01b6c8
xp[3] = x + w;
yp[3] = y - max(h / 4, 1);
xp[3] = x + w;
yp[3] = y - max(h / 4, 1);
- if (params_.length.inBP() < 0) {
- // turn symbol upside down. A prettier solution would use
- // inverted arrows (like in VSpace).
- swap(yp[0], yp[1]);
- swap(yp[2], yp[3]);
- }
if (params_.kind == InsetSpaceParams::PROTECTED ||
params_.kind == InsetSpaceParams::ENSPACE ||
params_.kind == InsetSpaceParams::NEGTHIN ||
params_.kind == InsetSpaceParams::CUSTOM_PROTECTED)
pi.pain.lines(xp, yp, 4, Color_latex);
if (params_.kind == InsetSpaceParams::PROTECTED ||
params_.kind == InsetSpaceParams::ENSPACE ||
params_.kind == InsetSpaceParams::NEGTHIN ||
params_.kind == InsetSpaceParams::CUSTOM_PROTECTED)
pi.pain.lines(xp, yp, 4, Color_latex);
- else
- pi.pain.lines(xp, yp, 4, Color_special);
+ else {
+ if (params_.length.inBP() < 0) {
+ // use another color for negative spaces
+ pi.pain.lines(xp, yp, 4, Color_red);
+ } else
+ pi.pain.lines(xp, yp, 4, Color_special);
+ }