"Fix" assert in new UI align code.

Looks like UI code can produce widgets with same left/top positions (in very narrow space case).
Not nice, but we do not really care, UI becomes unusable way before we reach that point anyway.
This commit is contained in:
Bastien Montagne 2015-11-10 09:23:11 +01:00
parent 54a04effff
commit 22c3d2efeb
1 changed files with 4 additions and 1 deletions

View File

@ -296,7 +296,10 @@ static int ui_block_align_butal_cmp(const void *a, const void *b)
return (*butal->borders[LEFT] > *butal_other->borders[LEFT]) ? 1 : -1;
}
BLI_assert(0);
/* XXX We cannot actually assert here, since in some very compressed space cases, stupid UI code produces
* widgets which have the same TOP and LEFT positions...
* We do not care really, because this happens when UI is way too small to be usable anyway. */
/* BLI_assert(0); */
return 0;
}