Author: Carlos Lopez <[email protected]>
Date: Sun Jun 26 18:57:23 2011 +0200
Don't allow supersample have zero or negative values in the height or width
parameters.It only causes problems.Fixes bug 3147736
---
synfig-core/src/modules/lyr_std/supersample.cpp | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/synfig-core/src/modules/lyr_std/supersample.cpp
b/synfig-core/src/modules/lyr_std/supersample.cpp
index 826f6ca..292502b 100644
--- a/synfig-core/src/modules/lyr_std/supersample.cpp
+++ b/synfig-core/src/modules/lyr_std/supersample.cpp
@@ -73,9 +73,16 @@ SuperSample::SuperSample():width(2),height(2)
bool
SuperSample::set_param(const String & param, const ValueBase &value)
{
-
- IMPORT(width);
- IMPORT(height);
+ IMPORT_PLUS(width,
+ if(value.get(int()) < 1) width = 1;
+ else width=value.get(int());
+ return true;
+ )
+ IMPORT_PLUS(height,
+ if(value.get(int()) < 1) height = 1;
+ else height=value.get(int());
+ return true;
+ )
IMPORT(scanline);
IMPORT(alpha_aware);
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl