add const

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25590 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-14 05:33:14 +00:00
parent e93fd11d41
commit f3f99c354c

View File

@ -212,9 +212,8 @@ void InsetSpace::metrics(MetricsInfo & mi, Dimension & dim) const
break; break;
case InsetSpaceParams::CUSTOM: case InsetSpaceParams::CUSTOM:
case InsetSpaceParams::CUSTOM_PROTECTED: { case InsetSpaceParams::CUSTOM_PROTECTED: {
int minwidth = 4; int const minwidth = (params_.length.inBP() < 0)
if (params_.length.inBP() < 0) ? 3 * arrow_size : 4;
minwidth = 3 * arrow_size;
dim.wid = max(minwidth, abs(params_.length.inBP())); dim.wid = max(minwidth, abs(params_.length.inBP()));
break; break;
} }