From f3f99c354cd1edca3e96ac2d03bd6852c60d4618 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 14 Jul 2008 05:33:14 +0000 Subject: [PATCH] add const git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25590 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetSpace.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }