wrong logic check. fix!

SVN revision: 72211
This commit is contained in:
Carsten Haitzler 2012-06-16 05:27:12 +00:00
parent ea2d9df312
commit 8f998d85f9
1 changed files with 3 additions and 2 deletions

View File

@ -756,8 +756,8 @@ evas_object_textgrid_size_set(Evas_Object *obj, int w, int h)
return;
MAGIC_CHECK_END();
if ((o->cur.w == w) || (o->cur.h == h)) return;
if ((o->cur.w == w) && (o->cur.h == h)) return;
evas_object_textgrid_rows_clear(obj);
if (o->cur.cells)
{
@ -1202,6 +1202,7 @@ evas_object_textgrid_cellrow_get(const Evas_Object *obj, int y)
MAGIC_CHECK_END();
if ((y < 0) || (y >= o->cur.h)) return NULL;
return o->cur.cells + (y * o->cur.w);
}