From: Abdelrazak Younes Date: Mon, 14 Jul 2008 05:33:14 +0000 (+0000) Subject: add const X-Git-Tag: 1.6.10~4091 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f3f99c354cd1edca3e96ac2d03bd6852c60d4618;p=features.git add const git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25590 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetSpace.cpp b/src/insets/InsetSpace.cpp index 47dd66da61..c84e3d6f21 100644 --- a/src/insets/InsetSpace.cpp +++ b/src/insets/InsetSpace.cpp @@ -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; }