[Bf-blender-cvs] [1664ccb6752] blender2.8: Fix flexible spacer distance

Dalai Felinto noreply at git.blender.org
Wed Jun 13 15:21:17 CEST 2018


Commit: 1664ccb6752adf1bcf326b72d1230aa9b667a1fb
Author: Dalai Felinto
Date:   Wed Jun 13 15:17:56 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB1664ccb6752adf1bcf326b72d1230aa9b667a1fb

Fix flexible spacer distance

Introduced on 0bce173bc7e9bb6d6cac.

===================================================================

M	source/blender/editors/interface/interface.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list