jaehwan pushed a commit to branch master.

commit ab3a7d20cb4609ddd564c84f85ffb52bfd6f3ed6
Author: Jaehwan Kim <[email protected]>
Date:   Tue Apr 23 19:23:16 2013 +0900

    Add 'if' statement for safety
---
 src/lib/elm_widget.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 3f205f9..8e4a0f4 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -3338,9 +3338,12 @@ _elm_widget_show_region_set(Eo *obj, void *_pd, va_list 
*list)
         sd->on_show_region
            (sd->on_show_region_data, obj);
 
-        eo_do(obj, elm_scrollable_interface_content_pos_get(&nx, &ny));
-        x -= nx;
-        y -= ny;
+        if (_elm_scrollable_is(obj))
+          {
+             eo_do(obj, elm_scrollable_interface_content_pos_get(&nx, &ny));
+             x -= nx;
+             y -= ny;
+          }
      }
 
    do

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

Reply via email to