Fix [#21529] Operator.report() has inconsistent behaviour with newlines
authorMatt Ebb <matt@mke3.net>
Fri, 9 Apr 2010 07:00:27 +0000 (07:00 +0000)
committerMatt Ebb <matt@mke3.net>
Fri, 9 Apr 2010 07:00:27 +0000 (07:00 +0000)
source/blender/editors/interface/interface_regions.c

index 35add45b10a096c663bde51220a6fd9cce293c61..ce3fe61b2f9948756ccae3ad310f8514edd9305c 100644 (file)
@@ -2095,13 +2095,13 @@ uiPopupBlockHandle *ui_popup_menu_create(bContext *C, ARegion *butregion, uiBut
                pup->mx= window->eventstate->x;
                pup->my= window->eventstate->y;
                pup->popup= 1;
+               pup->block->flag |= UI_BLOCK_NO_FLIP;
        }
 
        if(str) {
                /* menu is created from a string */
                pup->menu_func= ui_block_func_MENUSTR;
                pup->menu_arg= str;
-               // XXX pup->block->flag |= UI_BLOCK_NO_FLIP;
        }
        else {
                /* menu is created from a callback */