code cleanup: minor changes, replace len_v3 with len_squared_v3 for comparison.
[blender.git] / source / blender / editors / interface / interface_widgets.c
index 18c462b98a786c081c60d88f450f358ee2d2ceb9..142ea5128c0e981d58f7a4e4905b1604f07c8f11 100644 (file)
@@ -346,7 +346,7 @@ static void round_box__edges(uiWidgetBase *wt, int roundboxalign, const rcti *re
                          (roundboxalign & (UI_CNR_TOP_RIGHT | UI_CNR_BOTTOM_RIGHT)) == (UI_CNR_TOP_RIGHT | UI_CNR_BOTTOM_RIGHT)) ? 1 : 2;
 
        minsize = min_ii(BLI_rcti_size_x(rect) * hnum,
-                      BLI_rcti_size_y(rect) * vnum);
+                        BLI_rcti_size_y(rect) * vnum);
        
        if (2.0f * rad > minsize)
                rad = 0.5f * minsize;