[Bf-blender-cvs] [02035c34b73] blender2.8: Cleanup: typo

Campbell Barton noreply at git.blender.org
Mon Oct 29 00:35:18 CET 2018


Commit: 02035c34b735990f3685950621eff24c25d0e91c
Author: Campbell Barton
Date:   Mon Oct 29 10:35:05 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB02035c34b735990f3685950621eff24c25d0e91c

Cleanup: typo

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

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

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

diff --git a/source/blender/editors/interface/interface_align.c b/source/blender/editors/interface/interface_align.c
index ee66aeefb45..ee554822672 100644
--- a/source/blender/editors/interface/interface_align.c
+++ b/source/blender/editors/interface/interface_align.c
@@ -325,23 +325,23 @@ static void ui_block_align_but_to_region(uiBut *but, const ARegion *region)
 	rctf *rect = &but->rect;
 	const float but_width = BLI_rctf_size_x(rect);
 	const float but_height = BLI_rctf_size_y(rect);
-	const float outline_with = U.pixelsize; /* This may have to be made more variable. */
+	const float outline_px = U.pixelsize; /* This may have to be made more variable. */
 
 	switch (but->drawflag & UI_BUT_ALIGN) {
 		case UI_BUT_ALIGN_TOP:
-			rect->ymax = region->winy + outline_with;
+			rect->ymax = region->winy + outline_px;
 			rect->ymin = but->rect.ymax - but_height;
 			break;
 		case UI_BUT_ALIGN_DOWN:
-			rect->ymin = -outline_with;
+			rect->ymin = -outline_px;
 			rect->ymax = rect->ymin + but_height;
 			break;
 		case UI_BUT_ALIGN_LEFT:
-			rect->xmin = -outline_with;
+			rect->xmin = -outline_px;
 			rect->xmax = rect->xmin + but_width;
 			break;
 		case UI_BUT_ALIGN_RIGHT:
-			rect->xmax = region->winx + outline_with;
+			rect->xmax = region->winx + outline_px;
 			rect->xmin = rect->xmax - but_width;
 			break;
 		default:



More information about the Bf-blender-cvs mailing list