mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
add const
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25590 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e93fd11d41
commit
f3f99c354c
@ -212,9 +212,8 @@ void InsetSpace::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
break;
|
||||
case InsetSpaceParams::CUSTOM:
|
||||
case InsetSpaceParams::CUSTOM_PROTECTED: {
|
||||
int minwidth = 4;
|
||||
if (params_.length.inBP() < 0)
|
||||
minwidth = 3 * arrow_size;
|
||||
int const minwidth = (params_.length.inBP() < 0)
|
||||
? 3 * arrow_size : 4;
|
||||
dim.wid = max(minwidth, abs(params_.length.inBP()));
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user