From 3302fbaeb1d5f58d926c06b6153ec5d6f1a9b0be Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 23 Apr 2019 11:21:22 +1000 Subject: Cleanup: style, use braces for compositor --- source/blender/compositor/operations/COM_CropOperation.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'source/blender/compositor/operations/COM_CropOperation.cpp') diff --git a/source/blender/compositor/operations/COM_CropOperation.cpp b/source/blender/compositor/operations/COM_CropOperation.cpp index fbbe8706e11..625490dd3ab 100644 --- a/source/blender/compositor/operations/COM_CropOperation.cpp +++ b/source/blender/compositor/operations/COM_CropOperation.cpp @@ -41,14 +41,18 @@ void CropBaseOperation::updateArea() local_settings.y1 = height * local_settings.fac_y1; local_settings.y2 = height * local_settings.fac_y2; } - if (width <= local_settings.x1 + 1) + if (width <= local_settings.x1 + 1) { local_settings.x1 = width - 1; - if (height <= local_settings.y1 + 1) + } + if (height <= local_settings.y1 + 1) { local_settings.y1 = height - 1; - if (width <= local_settings.x2 + 1) + } + if (width <= local_settings.x2 + 1) { local_settings.x2 = width - 1; - if (height <= local_settings.y2 + 1) + } + if (height <= local_settings.y2 + 1) { local_settings.y2 = height - 1; + } this->m_xmax = max(local_settings.x1, local_settings.x2) + 1; this->m_xmin = min(local_settings.x1, local_settings.x2); -- cgit v1.2.3