Author: Carlos Lopez <[email protected]>
Date: Sat Oct 15 10:44:50 2011 +0200
Fix uninitialised class member on explicit constructor. Fix operator ==
---
synfig-core/src/synfig/widthpoint.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/synfig-core/src/synfig/widthpoint.cpp
b/synfig-core/src/synfig/widthpoint.cpp
index 7e82e6a..436a064 100644
--- a/synfig-core/src/synfig/widthpoint.cpp
+++ b/synfig-core/src/synfig/widthpoint.cpp
@@ -65,6 +65,8 @@ WidthPoint::WidthPoint(Real position, Real width, int
sidebefore, int sideafter,
side_type_[0]=sidebefore;
side_type_[1]=sideafter;
dash_=dash;
+ lower_bound_=0.0;
+ upper_bound_=1.0;
}
const Real&
@@ -199,5 +201,8 @@ WidthPoint::operator == (const WidthPoint& rhs)
return side_type_[0] == rhs.get_side_type(0) &&
side_type_[1] == rhs.get_side_type(1) &&
position_ == rhs.get_position() &&
- width_ == rhs.get_width();
+ width_ == rhs.get_width() &&
+ lower_bound_==rhs.get_lower_bound() &&
+ upper_bound_==rhs.get_upper_bound()
+ ;
}
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl