Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / interface / interface.c
index d667a26cc89e9ac6159aabf12d9b7cb3ff589b4f..8a16b3077d58f5effabedb1d024125d948d6770f 100644 (file)
@@ -1338,7 +1338,7 @@ static void ui_but_to_pixelrect(rcti *rect, const ARegion *ar, uiBlock *block, u
        rctf rectf;
 
        ui_block_to_window_rctf(ar, block, &rectf, (but) ? &but->rect : &block->rect);
-       BLI_rcti_rctf_copy(rect, &rectf);
+       BLI_rcti_rctf_copy_round(rect, &rectf);
        BLI_rcti_translate(rect, -ar->winrct.xmin, -ar->winrct.ymin);
 }