Fix separator element for headers with multiple directions

This commit is contained in:
Dalai Felinto 2018-06-11 14:54:04 +02:00
parent d90fc119c2
commit 070830c62d
1 changed files with 2 additions and 2 deletions

View File

@ -2227,8 +2227,8 @@ void uiItemSpacer(uiLayout *layout)
return;
}
if (block->direction != UI_DIR_RIGHT) {
printf("Error: separator_spacer() only supported in horizontal blocks\n.");
if (block->direction & UI_DIR_RIGHT) {
printf("Error: separator_spacer() only supported in horizontal blocks.\n");
return;
}