* src/insets/InsetSpace.cpp:

- use abs().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25516 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-07-09 10:31:16 +00:00
parent 9406eb0ff9
commit 0160b75b4d

View File

@ -206,13 +206,9 @@ void InsetSpace::metrics(MetricsInfo & mi, Dimension & dim) const
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: