forked from enlightenment/efl
evas_map: Fix a bug about wrong map point colors
Summary: evas_map_point_color_get returns wrong rgbs values always because of error label. Test Plan: Execute test suite Reviewers: raster, Hermet, cedric, jpeg, stefan_schmidt, Jaehyun_Cho Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5983
This commit is contained in:
parent
4917910b49
commit
83f326009e
|
@ -848,6 +848,7 @@ evas_map_point_color_get(const Evas_Map *m, int idx, int *r, int *g, int *b, int
|
|||
if (g) *g = p->g;
|
||||
if (b) *b = p->b;
|
||||
if (a) *a = p->a;
|
||||
return;
|
||||
|
||||
error:
|
||||
if (r) *r = 255;
|
||||
|
|
Loading…
Reference in New Issue