Fixed to reset size of the marker which is changed into another image 90/89890/1
authorchanywa <cbible.kim@samsung.com>
Mon, 26 Sep 2016 04:07:24 +0000 (13:07 +0900)
committerchanywa <cbible.kim@samsung.com>
Tue, 27 Sep 2016 09:52:49 +0000 (18:52 +0900)
Change-Id: I60af136abc10fde9f96bdbd93182bebb783a309d

src/api/maps_view_object.cpp

index a01ea67..2112d7b 100644 (file)
@@ -890,8 +890,10 @@ EXPORT_API int maps_view_object_marker_set_image_file(maps_view_object_h marker,
        const int error = maps_set_string(file_path, _MAPS_VIEW_MARKER_FILE_PATH_MAX_LENGTH, &m->file_path);
 
        /* Notify view, that the object specific preferences is changed */
-       if (error == MAPS_ERROR_NONE)
+       if (error == MAPS_ERROR_NONE) {
+               maps_view_object_marker_set_size(marker, 0, 0);
                _maps_view_on_object_operation(__get_view(marker), marker, MAPS_VIEW_OBJECT_CHANGE);
+       }
 
        return error;
 }