From: jomui Date: Mon, 27 Jun 2016 07:44:08 +0000 (+0900) Subject: fixed SVACE issue X-Git-Tag: submit/tizen/20160628.010408^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf3c368f0ded9fd7ef8bd24c601161b21673e4b0;p=platform%2Fcore%2Fapi%2Fmaps-service.git fixed SVACE issue Signed-off-by: jomui Change-Id: I2f05ee964a9b5fb8119ebf39d4286e13421d9a49 --- diff --git a/src/api/maps_view_object.cpp b/src/api/maps_view_object.cpp index 638c02b..eacb9bd 100644 --- a/src/api/maps_view_object.cpp +++ b/src/api/maps_view_object.cpp @@ -1210,6 +1210,8 @@ static bool __maps_view_object_overlay_clip(maps_view_object_h overlay, Evas_Obj int x, y, w, h; maps_view_get_screen_location(__get_view(overlay), &x, &y, &w, &h); maps_view_overlay_data_s *m = __get_overlay_data(overlay); + if (!m) + return false; evas_object_color_set(clipper, 255, 255, 255, 255); evas_object_move(clipper, x, y); evas_object_resize(clipper, w, h); @@ -1230,6 +1232,8 @@ static bool __maps_view_object_overlay_move(maps_view_object_h overlay, maps_coo int x, y, w, h; maps_view_geolocation_to_screen(__get_view(overlay), coordinates, &x, &y); maps_view_overlay_data_s *m = __get_overlay_data(overlay); + if (!m) + return false; evas_object_geometry_get(m->object, NULL, NULL, &w, &h); x -= w / 2; diff --git a/src/view/gesture_processor.cpp b/src/view/gesture_processor.cpp index 069e7b4..0e3f7a3 100644 --- a/src/view/gesture_processor.cpp +++ b/src/view/gesture_processor.cpp @@ -225,12 +225,15 @@ session::command *view::gesture_processor::construct_gesture_command( rotation_angle -= (int(rotation_angle) / 360) * 360; return new session::command_view_rotate(get_maps(), _gd->_view, rotation_angle); } + break; } case MAPS_VIEW_ACTION_NONE: MAPS_LOGI("GESTURE: This Gesture is assigned with no Action"); + break; default: - return session::command::empty_ptr(); + break; } + return session::command::empty_ptr(); } void view::gesture_processor::on_long_press()