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