Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-11-10 11:23:11 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-11-10 11:27:36 +0300
commit22c3d2efebddad17141eefa29ee0d7ac69f28b50 (patch)
tree5e0a65a98d7174fa27138b23a77308ed7e1089e0 /source/blender/editors/interface/interface_align.c
parent54a04effff7edc0fb318c2323d1d328b9ceea5d7 (diff)
"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.
Diffstat (limited to 'source/blender/editors/interface/interface_align.c')
-rw-r--r--source/blender/editors/interface/interface_align.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_align.c b/source/blender/editors/interface/interface_align.c
index d0be6d11e0a..e1e4f22990d 100644
--- a/source/blender/editors/interface/interface_align.c
+++ b/source/blender/editors/interface/interface_align.c
@@ -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;
}