elm_widget: do not need to set the scale to 0.0 if it is already 0.0.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 2 Jul 2014 17:12:21 +0000 (02:12 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 2 Jul 2014 17:25:25 +0000 (02:25 +0900)
legacy/elementary/src/lib/elm_widget.c

index a570726..00a754d 100644 (file)
@@ -3061,7 +3061,7 @@ _elm_widget_scroll_freeze_get(Eo *obj EINA_UNUSED, Elm_Widget_Smart_Data *sd)
 EOLIAN static void
 _elm_widget_scale_set(Eo *obj, Elm_Widget_Smart_Data *sd, double scale)
 {
-   if (scale <= 0.0) scale = 0.0;
+   if (scale < 0.0) scale = 0.0;
    if (sd->scale != scale)
      {
         sd->scale = scale;