mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* 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:
parent
9406eb0ff9
commit
0160b75b4d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user