]> git.lyx.org Git - features.git/commitdiff
add const
authorAbdelrazak Younes <younes@lyx.org>
Mon, 14 Jul 2008 05:33:14 +0000 (05:33 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 14 Jul 2008 05:33:14 +0000 (05:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25590 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetSpace.cpp

index 47dd66da6166091655f8cc6cefb28bd08303e0a0..c84e3d6f21fd911d1bae0ee0a93ccddb41b97779 100644 (file)
@@ -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;
                }