- correct metrics for negative hspaces (bug 5009).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25512
a592a061-630c-0410-9148-
cb99ea01b6c8
dim.wid = int(0.5 * fm.width(char_type('M')));
break;
case InsetSpaceParams::CUSTOM:
dim.wid = int(0.5 * fm.width(char_type('M')));
break;
case InsetSpaceParams::CUSTOM:
- case InsetSpaceParams::CUSTOM_PROTECTED:
- dim.wid = params_.length.inBP();
+ case InsetSpaceParams::CUSTOM_PROTECTED: {
+ int length = params_.length.inBP();
+ if (length < 0)
+ length = -1 * length;
+ dim.wid = length;
case InsetSpaceParams::HFILL:
case InsetSpaceParams::HFILL_PROTECTED:
case InsetSpaceParams::DOTFILL:
case InsetSpaceParams::HFILL:
case InsetSpaceParams::HFILL_PROTECTED:
case InsetSpaceParams::DOTFILL: