summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:52:29 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:56:53 +0900
commit8b6e72bfad9d620c17e8e5195a002251d667d10c (patch)
tree7731553a795a74e9a2ae3ecd87481968580d1332
parent20333c7905e6a7ea4eee14989625a6bb555f2f49 (diff)
els box - remove rudundant double check
not a bug but checking something twice in a row isn't too useful found by PVS studio
-rw-r--r--src/lib/elementary/els_box.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/els_box.c b/src/lib/elementary/els_box.c
index 03f418f050..199b739cf0 100644
--- a/src/lib/elementary/els_box.c
+++ b/src/lib/elementary/els_box.c
@@ -278,13 +278,13 @@ _smart_extents_calculate(Evas_Object *box, Evas_Object_Box_Data *priv, int w, in
278 evas_object_size_hint_max_get(opt->obj, &mnw, &mnh); 278 evas_object_size_hint_max_get(opt->obj, &mnw, &mnh);
279 if (mnh >= 0) 279 if (mnh >= 0)
280 { 280 {
281 if (mnh >= 0) mnh += pad_t + pad_b; 281 mnh += pad_t + pad_b;
282 if (maxh == -1) maxh = mnh; 282 if (maxh == -1) maxh = mnh;
283 else if (maxh > mnh) maxh = mnh; 283 else if (maxh > mnh) maxh = mnh;
284 } 284 }
285 if (mnw >= 0) 285 if (mnw >= 0)
286 { 286 {
287 if (mnw >= 0) mnw += pad_l + pad_r; 287 mnw += pad_l + pad_r;
288 if (maxw == -1) maxw = mnw; 288 if (maxw == -1) maxw = mnw;
289 else if (maxw > mnw) maxw = mnw; 289 else if (maxw > mnw) maxw = mnw;
290 } 290 }