diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-05 18:27:51 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-05 18:27:51 +0400 |
commit | 4742dc3fd747564636c36e40c88687ccc725a1c7 (patch) | |
tree | 3238491b8da2c208d3d8d7beec7b0ad37cda5dab | |
parent | c2405353b865fec24b6c243bc07924ed2b67d0a7 (diff) |
Fix for crop operation using uninitialized bounds in cases input image resolution is zero.
-rw-r--r-- | source/blender/compositor/operations/COM_CropOperation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_CropOperation.cpp b/source/blender/compositor/operations/COM_CropOperation.cpp index 16c19f3ebaa..4f9cd771988 100644 --- a/source/blender/compositor/operations/COM_CropOperation.cpp +++ b/source/blender/compositor/operations/COM_CropOperation.cpp @@ -58,6 +58,12 @@ void CropBaseOperation::updateArea() this->m_ymax = max(this->m_settings->y1, this->m_settings->y2) + 1; this->m_ymin = min(this->m_settings->y1, this->m_settings->y2); } + else { + this->m_xmax = 0; + this->m_xmin = 0; + this->m_ymax = 0; + this->m_ymin = 0; + } } void CropBaseOperation::initExecution() |