fix SVACE issue 05/141505/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20170801.163137 accepted/tizen/3.0/ivi/20170801.062340 accepted/tizen/3.0/mobile/20170801.062306 accepted/tizen/3.0/tv/20170801.062325 accepted/tizen/3.0/wearable/20170801.062329 submit/tizen_3.0/20170801.021238
authorjomui <jongmun.woo@samsung.com>
Tue, 1 Aug 2017 01:33:06 +0000 (10:33 +0900)
committerjomui <jongmun.woo@samsung.com>
Tue, 1 Aug 2017 01:33:30 +0000 (10:33 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I181bf7b2e5c7325e289d668491d86cd0313e1e34

src/api/maps_view_object.cpp
src/view/poly_shape_hit_test.cpp

index ae24ea2..17af190 100644 (file)
@@ -1082,10 +1082,10 @@ int _maps_view_object_overlay_set_bubble(maps_view_object_h overlay)
        cairo_paint_with_alpha(cairo, 0);
 
        /* set the size of bubble */
-       int bx = x + 2;
-       int by = y + 2;
-       int bw = w - bx * 2;
-       int bh = h - by - _OVERLAY_BUBBLE_PIN_SIZE;
+       double bx = x + 2;
+       double by = y + 2;
+       double bw = w - bx * 2;
+       double bh = h - by - _OVERLAY_BUBBLE_PIN_SIZE;
 
        /* build a path */
        cairo_new_path(cairo);
index 1b3047a..3eb348e 100644 (file)
@@ -94,8 +94,8 @@ bool view::poly_shape_hit_test::hit_test_segment(const float x1, const float y1,
        float y_rotated = x_shifted * sina - y_shifted * cosa;
 
        if ((x_rotated >= 0) && (x_rotated <= c)
-          && (y_rotated >= (-1. * (accuracy + w / 2)))
-          && (y_rotated <=  (accuracy + w / 2)))
+          && (y_rotated >= (-1. * (accuracy + (float)w / 2)))
+          && (y_rotated <= (accuracy + (float)w / 2)))
                return true;
        return false;
 }