[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52784] trunk/blender/source/blender/ compositor/operations/COM_CropOperation.cpp: Fix for crop operation using uninitialized bounds in cases input image resolution is zero .
Sergey Sharybin
sergey.vfx at gmail.com
Wed Dec 5 15:27:52 CET 2012
Revision: 52784
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52784
Author: nazgul
Date: 2012-12-05 14:27:51 +0000 (Wed, 05 Dec 2012)
Log Message:
-----------
Fix for crop operation using uninitialized bounds in cases input image resolution is zero.
Modified Paths:
--------------
trunk/blender/source/blender/compositor/operations/COM_CropOperation.cpp
Modified: trunk/blender/source/blender/compositor/operations/COM_CropOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_CropOperation.cpp 2012-12-05 11:58:38 UTC (rev 52783)
+++ trunk/blender/source/blender/compositor/operations/COM_CropOperation.cpp 2012-12-05 14:27:51 UTC (rev 52784)
@@ -58,6 +58,12 @@
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()
More information about the Bf-blender-cvs
mailing list