From 1664ccb6752adf1bcf326b72d1230aa9b667a1fb Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 13 Jun 2018 15:17:56 +0200 Subject: Fix flexible spacer distance Introduced on 0bce173bc7e9bb6d6cac. --- source/blender/editors/interface/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index d321cbbb89e..3b281315e38 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -243,7 +243,7 @@ static void ui_update_flexible_spacing(const ARegion *region, uiBlock *block) rcti rect; ui_but_to_pixelrect(&rect, region, block, block->buttons.last); - const float buttons_width = (float)rect.xmax + 2 * UI_HEADER_OFFSET; + const float buttons_width = (float)rect.xmax + UI_HEADER_OFFSET; const float region_width = (float)region->sizex * U.dpi_fac; if (region_width <= buttons_width) { -- cgit v1.2.3