summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-05-12 09:20:42 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2020-05-12 16:10:02 +0200
commit235ba0e407ae1e14684da5d0d66641564d755ae2 (patch)
treea98d7c21177a71e72d47989ceec0c510cb6f4790
parent6196311ad7e4f6ceacee0d56c97df06aab8e0995 (diff)
evas: resolve float compare warnings
Summary: Depends on D11792 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11793
-rw-r--r--src/lib/evas/canvas/evas_events.c20
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c30
-rw-r--r--src/lib/evas/common/evas_map_image_internal_high.c6
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_recognizer_flick.c2
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c2
-rw-r--r--src/lib/evas/vg/evas_vg_cache.c2
-rw-r--r--src/modules/evas/vg_savers/svg/evas_vg_save_svg.c2
7 files changed, 34 insertions, 30 deletions
diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c
index ff080eb913..0a1f1b460f 100644
--- a/src/lib/evas/canvas/evas_events.c
+++ b/src/lib/evas/canvas/evas_events.c
@@ -815,7 +815,7 @@ _evas_event_source_mouse_move_events(Evas_Object *eo_obj, Evas *eo_e,
815 ev->action = EFL_POINTER_ACTION_IN; 815 ev->action = EFL_POINTER_ACTION_IN;
816 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt, 816 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt,
817 event_id2, EFL_EVENT_POINTER_IN); 817 event_id2, EFL_EVENT_POINTER_IN);
818 if ((cur_pt.x != prev_pt.x) || (cur_pt.y != prev_pt.y)) 818 if (!EINA_DBL_EQ(cur_pt.x, prev_pt.x) || !EINA_DBL_EQ(cur_pt.y, prev_pt.y))
819 { 819 {
820 ev->action = EFL_POINTER_ACTION_MOVE; 820 ev->action = EFL_POINTER_ACTION_MOVE;
821 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt, 821 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt,
@@ -1368,7 +1368,7 @@ _evas_event_source_mouse_in_events(Evas_Object *eo_obj, Evas *eo_e,
1368 ev->action = EFL_POINTER_ACTION_IN; 1368 ev->action = EFL_POINTER_ACTION_IN;
1369 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt, 1369 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt,
1370 event_id, EFL_EVENT_POINTER_IN); 1370 event_id, EFL_EVENT_POINTER_IN);
1371 if ((cur_pt.x != prev_pt.x) || (cur_pt.y != prev_pt.y)) 1371 if (!EINA_DBL_EQ(cur_pt.x, prev_pt.x) || !EINA_DBL_EQ(cur_pt.y, prev_pt.y))
1372 { 1372 {
1373 ev->action = EFL_POINTER_ACTION_MOVE; 1373 ev->action = EFL_POINTER_ACTION_MOVE;
1374 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt, 1374 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt,
@@ -2350,7 +2350,7 @@ _canvas_event_feed_mouse_move_internal(Evas_Public_Data *e, Efl_Input_Pointer_Da
2350 2350
2351 _evas_walk(e); 2351 _evas_walk(e);
2352 /* update moved touch point */ 2352 /* update moved touch point */
2353 if ((prev_pt.x != cur_pt.x) || (prev_pt.y != cur_pt.y)) 2353 if (!EINA_DBL_EQ(cur_pt.x, prev_pt.x) || !EINA_DBL_EQ(cur_pt.y, prev_pt.y))
2354 _evas_touch_point_update(eo_e, 0, pdata->seat->x, pdata->seat->y, EVAS_TOUCH_POINT_MOVE); 2354 _evas_touch_point_update(eo_e, 0, pdata->seat->x, pdata->seat->y, EVAS_TOUCH_POINT_MOVE);
2355 /* if our mouse button is grabbed to any objects */ 2355 /* if our mouse button is grabbed to any objects */
2356 if (pdata->seat->mouse_grabbed > 0) 2356 if (pdata->seat->mouse_grabbed > 0)
@@ -2387,7 +2387,7 @@ _canvas_event_feed_mouse_move_internal(Evas_Public_Data *e, Efl_Input_Pointer_Da
2387 ev->cur = cur_pt; 2387 ev->cur = cur_pt;
2388 ev->prev = prev_pt; 2388 ev->prev = prev_pt;
2389 2389
2390 if ((prev_pt.x != cur_pt.x) || (prev_pt.y != cur_pt.y)) 2390 if (!EINA_DBL_EQ(cur_pt.x, prev_pt.x) || !EINA_DBL_EQ(cur_pt.y, prev_pt.y))
2391 { 2391 {
2392 _evas_event_havemap_adjust_f(obj, &ev->cur, &ev->prev, obj_pdata->mouse_grabbed); 2392 _evas_event_havemap_adjust_f(obj, &ev->cur, &ev->prev, obj_pdata->mouse_grabbed);
2393 2393
@@ -2485,7 +2485,7 @@ _canvas_event_feed_mouse_move_internal(Evas_Public_Data *e, Efl_Input_Pointer_Da
2485 _evas_event_object_pointer_allow_precise(eo_obj, obj, ev->cur.x, ev->cur.y, ins) && 2485 _evas_event_object_pointer_allow_precise(eo_obj, obj, ev->cur.x, ev->cur.y, ins) &&
2486 (obj_pdata->mouse_grabbed || !evas_object_is_source_invisible(eo_obj, obj))) 2486 (obj_pdata->mouse_grabbed || !evas_object_is_source_invisible(eo_obj, obj)))
2487 { 2487 {
2488 if ((prev_pt.x != cur_pt.x) || (prev_pt.y != cur_pt.y)) 2488 if (!EINA_DBL_EQ(cur_pt.x, prev_pt.x) || !EINA_DBL_EQ(cur_pt.y, prev_pt.y))
2489 { 2489 {
2490 ev->action = EFL_POINTER_ACTION_MOVE; 2490 ev->action = EFL_POINTER_ACTION_MOVE;
2491 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt, 2491 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt,
@@ -2540,7 +2540,7 @@ _canvas_event_feed_mouse_move_internal(Evas_Public_Data *e, Efl_Input_Pointer_Da
2540 ev->action = EFL_POINTER_ACTION_IN; 2540 ev->action = EFL_POINTER_ACTION_IN;
2541 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_IN, evt, 2541 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_IN, evt,
2542 event_id, EFL_EVENT_POINTER_IN); 2542 event_id, EFL_EVENT_POINTER_IN);
2543 if ((prev_pt.x != cur_pt.x) || (prev_pt.y != cur_pt.y)) 2543 if (!EINA_DBL_EQ(cur_pt.x, prev_pt.x) || !EINA_DBL_EQ(cur_pt.y, prev_pt.y))
2544 { 2544 {
2545 ev->action = EFL_POINTER_ACTION_MOVE; 2545 ev->action = EFL_POINTER_ACTION_MOVE;
2546 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt, 2546 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt,
@@ -2633,7 +2633,7 @@ nogrep:
2633 _evas_event_object_pointer_allow_precise(eo_obj, obj, ev->cur.x, ev->cur.y, newin) && 2633 _evas_event_object_pointer_allow_precise(eo_obj, obj, ev->cur.x, ev->cur.y, newin) &&
2634 (obj_pdata->mouse_grabbed || !evas_object_is_source_invisible(eo_obj, obj))) 2634 (obj_pdata->mouse_grabbed || !evas_object_is_source_invisible(eo_obj, obj)))
2635 { 2635 {
2636 if ((prev_pt.x != cur_pt.x) || (prev_pt.y != cur_pt.y)) 2636 if (!EINA_DBL_EQ(cur_pt.x, prev_pt.x) || !EINA_DBL_EQ(cur_pt.y, prev_pt.y))
2637 { 2637 {
2638 ev->action = EFL_POINTER_ACTION_MOVE; 2638 ev->action = EFL_POINTER_ACTION_MOVE;
2639 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt, 2639 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt,
@@ -2687,7 +2687,7 @@ nogrep:
2687 ev->action = EFL_POINTER_ACTION_IN; 2687 ev->action = EFL_POINTER_ACTION_IN;
2688 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_IN, evt, 2688 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_IN, evt,
2689 event_id, EFL_EVENT_POINTER_IN); 2689 event_id, EFL_EVENT_POINTER_IN);
2690 if ((prev_pt.x != cur_pt.x) || (prev_pt.y != cur_pt.y)) 2690 if (!EINA_DBL_EQ(cur_pt.x, prev_pt.x) || !EINA_DBL_EQ(cur_pt.y, prev_pt.y))
2691 { 2691 {
2692 ev->action = EFL_POINTER_ACTION_MOVE; 2692 ev->action = EFL_POINTER_ACTION_MOVE;
2693 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt, 2693 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt,
@@ -2831,8 +2831,8 @@ _canvas_event_feed_mouse_in_internal(Evas *eo_e, Efl_Input_Pointer_Data *ev)
2831 efl_ref(eo_obj); 2831 efl_ref(eo_obj);
2832 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_IN, evt, 2832 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_IN, evt,
2833 event_id, EFL_EVENT_POINTER_IN); 2833 event_id, EFL_EVENT_POINTER_IN);
2834 if ((pdata->seat->x != ev->prev.x) && 2834 if (!EINA_DBL_EQ(pdata->seat->x, ev->prev.x) &&
2835 (pdata->seat->y != ev->prev.y)) 2835 !EINA_DBL_EQ(pdata->seat->y, ev->prev.y))
2836 { 2836 {
2837 ev->action = EFL_POINTER_ACTION_MOVE; 2837 ev->action = EFL_POINTER_ACTION_MOVE;
2838 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt, 2838 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_MOUSE_MOVE, evt,
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index e92b55ba68..fe6552d4ac 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -3608,11 +3608,11 @@ _format_string_get(const Eo *eo_obj, Evas_Object_Textblock_Format *fmt)
3608 halign_value_str = "locale"; 3608 halign_value_str = "locale";
3609 break; 3609 break;
3610 case EVAS_TEXTBLOCK_ALIGN_AUTO_NONE: 3610 case EVAS_TEXTBLOCK_ALIGN_AUTO_NONE:
3611 if (fmt->halign == 0.5) 3611 if (EINA_DBL_EQ(fmt->halign, 0.5))
3612 halign_value_str = "center"; 3612 halign_value_str = "center";
3613 else if (fmt->halign == 0.0) 3613 else if (EINA_DBL_EQ(fmt->halign, 0.0))
3614 halign_value_str = "left"; 3614 halign_value_str = "left";
3615 else if (fmt->halign == 1.0) 3615 else if (EINA_DBL_EQ(fmt->halign, 1.0))
3616 halign_value_str = "right"; 3616 halign_value_str = "right";
3617 3617
3618 break; 3618 break;
@@ -3626,13 +3626,13 @@ _format_string_get(const Eo *eo_obj, Evas_Object_Textblock_Format *fmt)
3626 3626
3627 char *valign_value_str = NULL; 3627 char *valign_value_str = NULL;
3628 3628
3629 if (fmt->valign == 0.5) 3629 if (EINA_DBL_EQ(fmt->valign, 0.5))
3630 valign_value_str = "center"; 3630 valign_value_str = "center";
3631 else if (fmt->valign == 0.0) 3631 else if (EINA_DBL_EQ(fmt->valign, 0.0))
3632 valign_value_str = "top"; 3632 valign_value_str = "top";
3633 else if (fmt->valign == 1.0) 3633 else if (EINA_DBL_EQ(fmt->valign, 1.0))
3634 valign_value_str = "bottom"; 3634 valign_value_str = "bottom";
3635 else if (fmt->valign == -1.0) 3635 else if (EINA_DBL_EQ(fmt->valign, -1.0))
3636 valign_value_str = "baseline"; 3636 valign_value_str = "baseline";
3637 3637
3638 if (valign_value_str != NULL) 3638 if (valign_value_str != NULL)
@@ -4891,7 +4891,7 @@ loop_advance:
4891 } 4891 }
4892 4892
4893 /* Check current line's height is acceptable or not */ 4893 /* Check current line's height is acceptable or not */
4894 if ((fmt->ellipsis == 1.0) && 4894 if (EINA_DBL_EQ(fmt->ellipsis, 1.0) &&
4895 (c->h > 0) && (c->y + c->ln->h > c->h)) 4895 (c->h > 0) && (c->y + c->ln->h > c->h))
4896 { 4896 {
4897 /* No text is shown when the object height is smaller than actual font size's height. 4897 /* No text is shown when the object height is smaller than actual font size's height.
@@ -16630,6 +16630,10 @@ _efl_canvas_textblock_efl_text_font_properties_font_bitmap_scalable_get(const Eo
16630 if (_FMT(x) == v) return; \ 16630 if (_FMT(x) == v) return; \
16631 _FMT(x) = v; \ 16631 _FMT(x) = v; \
16632 _canvas_text_format_changed(obj, o); 16632 _canvas_text_format_changed(obj, o);
16633#define _FMT_SETD(x, v) \
16634 if (EINA_DBL_EQ(_FMT(x), v)) return; \
16635 _FMT(x) = v; \
16636 _canvas_text_format_changed(obj, o);
16633 16637
16634/* Helper: updates format field of extended format information, and informs if changed. */ 16638/* Helper: updates format field of extended format information, and informs if changed. */
16635#define _FMT_INFO_SET_START(x, v) \ 16639#define _FMT_INFO_SET_START(x, v) \
@@ -16731,7 +16735,7 @@ static void
16731_efl_canvas_textblock_efl_text_style_text_underline_height_set(Eo *obj EINA_UNUSED, Efl_Canvas_Textblock_Data *o EINA_UNUSED, double height EINA_UNUSED) 16735_efl_canvas_textblock_efl_text_style_text_underline_height_set(Eo *obj EINA_UNUSED, Efl_Canvas_Textblock_Data *o EINA_UNUSED, double height EINA_UNUSED)
16732{ 16736{
16733 ASYNC_BLOCK; 16737 ASYNC_BLOCK;
16734 _FMT_SET(underline_height, height); 16738 _FMT_SETD(underline_height, height);
16735} 16739}
16736 16740
16737static double 16741static double
@@ -17000,7 +17004,7 @@ static void
17000_efl_canvas_textblock_efl_text_format_ellipsis_set(Eo *obj EINA_UNUSED, Efl_Canvas_Textblock_Data *o EINA_UNUSED, double value EINA_UNUSED) 17004_efl_canvas_textblock_efl_text_format_ellipsis_set(Eo *obj EINA_UNUSED, Efl_Canvas_Textblock_Data *o EINA_UNUSED, double value EINA_UNUSED)
17001{ 17005{
17002 ASYNC_BLOCK; 17006 ASYNC_BLOCK;
17003 _FMT_SET(ellipsis, value); 17007 _FMT_SETD(ellipsis, value);
17004} 17008}
17005 17009
17006static double 17010static double
@@ -17286,7 +17290,7 @@ _efl_canvas_textblock_efl_text_format_text_horizontal_align_set(Eo *obj, Efl_Can
17286 ASYNC_BLOCK; 17290 ASYNC_BLOCK;
17287 if (EINA_DBL_EQ(_FMT(halign), value)) return; 17291 if (EINA_DBL_EQ(_FMT(halign), value)) return;
17288 _FMT(halign_auto) = EVAS_TEXTBLOCK_ALIGN_AUTO_NONE; 17292 _FMT(halign_auto) = EVAS_TEXTBLOCK_ALIGN_AUTO_NONE;
17289 _FMT_SET(halign, value); 17293 _FMT_SETD(halign, value);
17290} 17294}
17291 17295
17292static double 17296static double
@@ -17322,7 +17326,7 @@ _efl_canvas_textblock_efl_text_format_line_gap_set(Eo *obj EINA_UNUSED, Efl_Canv
17322 17326
17323 if (EINA_DBL_EQ(linerelgap, 0.0)) 17327 if (EINA_DBL_EQ(linerelgap, 0.0))
17324 { 17328 {
17325 _FMT_SET(linegap, value); 17329 _FMT_SETD(linegap, value);
17326 } 17330 }
17327 else 17331 else
17328 { 17332 {
@@ -17347,7 +17351,7 @@ _efl_canvas_textblock_efl_text_format_line_rel_gap_set(Eo *obj EINA_UNUSED, Efl_
17347 17351
17348 if (EINA_DBL_EQ(linegap, 0.0)) 17352 if (EINA_DBL_EQ(linegap, 0.0))
17349 { 17353 {
17350 _FMT_SET(linerelgap, value); 17354 _FMT_SETD(linerelgap, value);
17351 } 17355 }
17352 else 17356 else
17353 { 17357 {
diff --git a/src/lib/evas/common/evas_map_image_internal_high.c b/src/lib/evas/common/evas_map_image_internal_high.c
index 040bab71ac..0b52eeace4 100644
--- a/src/lib/evas/common/evas_map_image_internal_high.c
+++ b/src/lib/evas/common/evas_map_image_internal_high.c
@@ -587,7 +587,7 @@ _map_triangle_draw(RGBA_Image *src, RGBA_Image *dst,
587 denom = ((x[2] - x[0]) * (y[1] - y[0]) - (x[1] - x[0]) * (y[2] - y[0])); 587 denom = ((x[2] - x[0]) * (y[1] - y[0]) - (x[1] - x[0]) * (y[2] - y[0]));
588 588
589 //Skip poly if it's an infinitely thin line 589 //Skip poly if it's an infinitely thin line
590 if (denom == 0) return; 590 if (EINA_DBL_EQ(denom, 0)) return;
591 591
592 denom = 1 / denom; //Reciprocal for speeding up 592 denom = 1 / denom; //Reciprocal for speeding up
593 dudx = ((u[2] - u[0]) * (y[1] - y[0]) - (u[1] - u[0]) * (y[2] - y[0])) * denom; 593 dudx = ((u[2] - u[0]) * (y[1] - y[0]) - (u[1] - u[0]) * (y[2] - y[0])) * denom;
@@ -619,8 +619,8 @@ _map_triangle_draw(RGBA_Image *src, RGBA_Image *dst,
619 //Determine which side of the polygon the longer edge is on 619 //Determine which side of the polygon the longer edge is on
620 side = (dxdy[1] > dxdy[0]) ? EINA_TRUE:EINA_FALSE; 620 side = (dxdy[1] > dxdy[0]) ? EINA_TRUE:EINA_FALSE;
621 621
622 if (y[0] == y[1]) side = x[0] > x[1]; 622 if (EINA_DBL_EQ(y[0], y[1])) side = x[0] > x[1];
623 if (y[1] == y[2]) side = x[2] > x[1]; 623 if (EINA_DBL_EQ(y[1], y[2])) side = x[2] > x[1];
624 624
625 //Longer edge is on the left side 625 //Longer edge is on the left side
626 if (!side) 626 if (!side)
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_flick.c b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_flick.c
index b113e612b0..962ed3ddda 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_flick.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_flick.c
@@ -240,7 +240,7 @@ _efl_canvas_gesture_recognizer_flick_efl_canvas_gesture_recognizer_recognize(Eo
240 { 240 {
241 /* This is for continues-gesture */ 241 /* This is for continues-gesture */
242 /* Finish line on zero momentum for continues gesture */ 242 /* Finish line on zero momentum for continues gesture */
243 if ((!fd->momentum.x) && (!fd->momentum.y)) 243 if (EINA_DBL_EQ(fd->momentum.x, 0) && EINA_DBL_EQ(fd->momentum.y, 0))
244 pd->t_end = efl_gesture_touch_current_timestamp_get(event); 244 pd->t_end = efl_gesture_touch_current_timestamp_get(event);
245 } 245 }
246 } 246 }
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c
index 372fd1ecfe..0a1d2e9a20 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer_zoom.c
@@ -218,7 +218,7 @@ _efl_canvas_gesture_recognizer_zoom_efl_canvas_gesture_recognizer_recognize(Eo *
218 218
219 return EFL_GESTURE_RECOGNIZER_RESULT_IGNORE; 219 return EFL_GESTURE_RECOGNIZER_RESULT_IGNORE;
220 } 220 }
221 if ((pd->zoom_base) && (pd->zoom_distance_tolerance == 0)) 221 if ((pd->zoom_base) && EINA_DBL_EQ(pd->zoom_distance_tolerance, 0))
222 { 222 {
223 _reset_recognizer(pd); 223 _reset_recognizer(pd);
224 224
diff --git a/src/lib/evas/vg/evas_vg_cache.c b/src/lib/evas/vg/evas_vg_cache.c
index 719ee0fd1d..86c23dfb31 100644
--- a/src/lib/evas/vg/evas_vg_cache.c
+++ b/src/lib/evas/vg/evas_vg_cache.c
@@ -226,7 +226,7 @@ _local_transform(Efl_VG *root, double w, double h, Vg_File_Data *vfd)
226 Eina_Matrix3 m; 226 Eina_Matrix3 m;
227 227
228 if (!vfd->static_viewbox) return; 228 if (!vfd->static_viewbox) return;
229 if (vfd->view_box.w == w && vfd->view_box.h == h) return; 229 if (EINA_DBL_EQ(vfd->view_box.w, w) && EINA_DBL_EQ(vfd->view_box.h, h)) return;
230 230
231 sx = w / vfd->view_box.w; 231 sx = w / vfd->view_box.w;
232 sy = h / vfd->view_box.h; 232 sy = h / vfd->view_box.h;
diff --git a/src/modules/evas/vg_savers/svg/evas_vg_save_svg.c b/src/modules/evas/vg_savers/svg/evas_vg_save_svg.c
index e900432d9a..ecb2b84938 100644
--- a/src/modules/evas/vg_savers/svg/evas_vg_save_svg.c
+++ b/src/modules/evas/vg_savers/svg/evas_vg_save_svg.c
@@ -23,7 +23,7 @@ printf_style(Svg_Style_Property *style, Eina_Strbuf *buf)
23 eina_strbuf_append_printf(buf, " fill-opacity=\"%f\"", style->fill.opacity / 255.0); 23 eina_strbuf_append_printf(buf, " fill-opacity=\"%f\"", style->fill.opacity / 255.0);
24 if ((style->stroke.paint.r) || (style->stroke.paint.g) || (style->stroke.paint.b)) 24 if ((style->stroke.paint.r) || (style->stroke.paint.g) || (style->stroke.paint.b))
25 eina_strbuf_append_printf(buf, " stroke=\"#%02X%02X%02X\" ", style->stroke.paint.r, style->stroke.paint.g, style->stroke.paint.b); 25 eina_strbuf_append_printf(buf, " stroke=\"#%02X%02X%02X\" ", style->stroke.paint.r, style->stroke.paint.g, style->stroke.paint.b);
26 if (style->stroke.width) 26 if (EINA_DBL_NONZERO(style->stroke.width))
27 eina_strbuf_append_printf(buf, " stroke-width=\"%f\" ", style->stroke.width); 27 eina_strbuf_append_printf(buf, " stroke-width=\"%f\" ", style->stroke.width);
28 if (style->stroke.cap == EFL_GFX_CAP_ROUND) 28 if (style->stroke.cap == EFL_GFX_CAP_ROUND)
29 eina_strbuf_append_printf(buf, " stroke-linecap=\"round\" "); 29 eina_strbuf_append_printf(buf, " stroke-linecap=\"round\" ");