projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initialise a couple of values before using them.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
lyr_std
/
warp.cpp
diff --git
a/synfig-core/trunk/src/modules/lyr_std/warp.cpp
b/synfig-core/trunk/src/modules/lyr_std/warp.cpp
index
c41fe04
..
f11c290
100644
(file)
--- a/
synfig-core/trunk/src/modules/lyr_std/warp.cpp
+++ b/
synfig-core/trunk/src/modules/lyr_std/warp.cpp
@@
-6,7
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-** Copyright (c) 2007 Chris Moore
+** Copyright (c) 2007
, 2008
Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-614,16
+614,12
@@
Warp::accelerated_render(Context context,Surface *surface,int quality, const Ren
Point min_point(bounding_rect.get_min());
Point max_point(bounding_rect.get_max());
Point min_point(bounding_rect.get_min());
Point max_point(bounding_rect.get_max());
- // we're going to divide by the differen
t
of these pairs soon;
+ // we're going to divide by the differen
ce
of these pairs soon;
// if they're the same, we'll be dividing by zero, and we don't
// want to do that!
// \todo what should we do in this case?
// if they're the same, we'll be dividing by zero, and we don't
// want to do that!
// \todo what should we do in this case?
- if (min_point[0] == max_point[0] || min_point[1] == max_point[1])
- {
- surface->set_wh(renddesc.get_w(),renddesc.get_h());
- surface->clear();
- return true;
- }
+ if (min_point[0] == max_point[0]) max_point[0] += 0.001;
+ if (min_point[1] == max_point[1]) max_point[1] += 0.001;
if(tl[0]>br[0])
{
if(tl[0]>br[0])
{