forked from enlightenment/efl
Efl.Gfx.Path: Fix wrong condition check in _find_ellipsis_coords
Summary: In previous patch, !w should be replaced with EINA_FLT_EQ(w, 0.0), but it was replaced with !EINA_FLT_EQ(w, 0.0). This breaks rounded rectangle. T5291 Test Plan: compile and run attached file Reviewers: cedric, jpeg, Jaehyun_Cho Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D4787
This commit is contained in:
parent
2b90533e37
commit
e2febfd595
|
@ -799,7 +799,7 @@ _find_ellipse_coords(double x, double y, double w, double h, double angle,
|
|||
double angles[2] = { angle, angle + length };
|
||||
Point *points[2];
|
||||
|
||||
if (!EINA_FLT_EQ(w, 0.0) || !EINA_FLT_EQ(h, 0.0))
|
||||
if (EINA_FLT_EQ(w, 0.0) || EINA_FLT_EQ(h, 0.0))
|
||||
{
|
||||
if (start_point)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue