Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-17 18:05:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-17 18:05:29 +0300
commita262ea8c47f8106f66e16935c556f383ef306861 (patch)
treef37e53c16ba423c478b9522244183367c701b3b0 /source/blender/compositor/operations/COM_CropOperation.cpp
parent410880552bfaf32f91eaad56bdf2c93c67cbd5c8 (diff)
Cleanup: trailing space for compositor
Diffstat (limited to 'source/blender/compositor/operations/COM_CropOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_CropOperation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_CropOperation.cpp b/source/blender/compositor/operations/COM_CropOperation.cpp
index 162811ac31d..af68fa09f1a 100644
--- a/source/blender/compositor/operations/COM_CropOperation.cpp
+++ b/source/blender/compositor/operations/COM_CropOperation.cpp
@@ -37,7 +37,7 @@ void CropBaseOperation::updateArea()
float width = inputReference->getWidth();
float height = inputReference->getHeight();
NodeTwoXYs local_settings = *this->m_settings;
-
+
if (width > 0.0f && height > 0.0f) {
if (this->m_relative) {
local_settings.x1 = width * local_settings.fac_x1;
@@ -53,7 +53,7 @@ void CropBaseOperation::updateArea()
local_settings.x2 = width - 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);
this->m_ymax = max(local_settings.y1, local_settings.y2) + 1;
@@ -101,12 +101,12 @@ CropImageOperation::CropImageOperation() : CropBaseOperation()
bool CropImageOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)
{
rcti newInput;
-
+
newInput.xmax = input->xmax + this->m_xmin;
newInput.xmin = input->xmin + this->m_xmin;
newInput.ymax = input->ymax + this->m_ymin;
newInput.ymin = input->ymin + this->m_ymin;
-
+
return NodeOperation::determineDependingAreaOfInterest(&newInput, readOperation, output);
}