From: jomui Date: Tue, 1 Aug 2017 01:33:06 +0000 (+0900) Subject: fix SVACE issue X-Git-Tag: submit/tizen_3.0/20170801.021238^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_3.0;p=platform%2Fcore%2Fapi%2Fmaps-service.git fix SVACE issue Signed-off-by: jomui Change-Id: I181bf7b2e5c7325e289d668491d86cd0313e1e34 --- diff --git a/src/api/maps_view_object.cpp b/src/api/maps_view_object.cpp index ae24ea2..17af190 100644 --- a/src/api/maps_view_object.cpp +++ b/src/api/maps_view_object.cpp @@ -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); diff --git a/src/view/poly_shape_hit_test.cpp b/src/view/poly_shape_hit_test.cpp index 1b3047a..3eb348e 100644 --- a/src/view/poly_shape_hit_test.cpp +++ b/src/view/poly_shape_hit_test.cpp @@ -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; }