svn merge ^/trunk/blender -r50091:50107
[blender.git] / source / blender / blenkernel / intern / colortools.c
index 2a045d8b54f4abc7337161119c56d73dc2878f64..d0901ad93ff591c60f5b1cc740c239785e6b84d3 100644 (file)
@@ -669,7 +669,7 @@ void curvemapping_changed(CurveMapping *cumap, int rem_doubles)
        CurveMap *cuma = cumap->cm + cumap->cur;
        CurveMapPoint *cmp = cuma->curve;
        rctf *clipr = &cumap->clipr;
-       float thresh = 0.01f * (clipr->xmax - clipr->xmin);
+       float thresh = 0.01f * BLI_RCT_SIZE_X(clipr);
        float dx = 0.0f, dy = 0.0f;
        int a;