Temporary fix for [#23848] Image too small Error

* This should be fixed properly later when general window close/resize problems in the todo list are tackled.
This commit is contained in:
Janne Karhu
2010-09-21 14:39:18 +00:00
parent 3f18d7bb9b
commit 42872eb036

View File

@@ -753,7 +753,10 @@ void uiDrawBlock(const bContext *C, uiBlock *block)
/* widgets */
for(but= block->buttons.first; but; but= but->next) {
ui_but_to_pixelrect(&rect, ar, block, but);
if(!(but->flag & UI_HIDDEN))
if(!(but->flag & UI_HIDDEN) &&
/* XXX: figure out why invalid coordinates happen when closing render window */
/* and material preview is redrawn in main window (temp fix for bug #23848) */
rect.xmin < rect.xmax && rect.ymin < rect.ymax)
ui_draw_but(C, ar, &style, but, &rect);
}