Module: synfig/synfig Branch: genete_width_outline Commit: 7fe35d24fafe1e8f154ec45eaf56731f42b6d27d URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=7fe35d24fafe1e8f154ec45eaf56731f42b6d27d
Author: Carlos Lopez <[email protected]> Date: Sat Feb 5 18:55:51 2011 +0100 Use the normalised position to compare width points --- synfig-core/src/synfig/widthpoint.cpp | 6 ++++++ synfig-core/src/synfig/widthpoint.h | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/synfig-core/src/synfig/widthpoint.cpp b/synfig-core/src/synfig/widthpoint.cpp index f3766ab..6c1b741 100644 --- a/synfig-core/src/synfig/widthpoint.cpp +++ b/synfig-core/src/synfig/widthpoint.cpp @@ -126,3 +126,9 @@ WidthPoint::get_side_type(int i)const { return i>0? side_type_[1]: side_type_[0]; } + +bool +WidthPoint::operator<(const WidthPoint& rhs) +{ + return get_norm_position() < rhs.get_norm_position(); +} diff --git a/synfig-core/src/synfig/widthpoint.h b/synfig-core/src/synfig/widthpoint.h index 53ed48e..de74401 100644 --- a/synfig-core/src/synfig/widthpoint.h +++ b/synfig-core/src/synfig/widthpoint.h @@ -74,7 +74,7 @@ public: int get_side_type_after()const; void set_side_type_after(int sideafter); int get_side_type(int i)const; - bool operator < (const WidthPoint& rhs) { return position_ < rhs.position_; } + bool operator < (const WidthPoint& rhs); }; // END of class WidthPoint ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ Synfig-devl mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synfig-devl
