[Bf-blender-cvs] [4eb10e414b1] master: Fix wrong use of region size without pixel-size applied
Julian Eisel
noreply at git.blender.org
Fri Feb 4 15:31:10 CET 2022
Commit: 4eb10e414b1d521577d1e12f303d1b9e204b695c
Author: Julian Eisel
Date: Fri Feb 4 15:23:45 2022 +0100
Branches: master
https://developer.blender.org/rB4eb10e414b1d521577d1e12f303d1b9e204b695c
Fix wrong use of region size without pixel-size applied
Didn't cause visible issues, because the layout uses spacers to
right-align text, which happens to use the region size with pixel-size
applied for calculations.
===================================================================
M source/blender/editors/space_spreadsheet/space_spreadsheet.cc
===================================================================
diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
index 18f383d45fb..357b3e0a8b4 100644
--- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
+++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
@@ -554,7 +554,7 @@ static void spreadsheet_footer_region_draw(const bContext *C, ARegion *region)
UI_LAYOUT_HEADER,
UI_HEADER_OFFSET,
region->winy - (region->winy - UI_UNIT_Y) / 2.0f,
- region->sizex,
+ region->winx,
1,
0,
style);
More information about the Bf-blender-cvs
mailing list