From 2cd9008c7de44187fe5f7caded1a3050d223a3ae Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 6 Sep 2007 11:26:20 +0000 Subject: [PATCH] Added a new member "bool same_type_as(const Type testtype)const". git-svn-id: http://svn.voria.com/code@609 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/value.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synfig-core/trunk/src/synfig/value.h b/synfig-core/trunk/src/synfig/value.h index 53dc12a..3e843a6 100644 --- a/synfig-core/trunk/src/synfig/value.h +++ b/synfig-core/trunk/src/synfig/value.h @@ -204,6 +204,11 @@ public: { const Type testtype(get_type(x)); + return same_type_as(testtype); + } + + bool same_type_as(const Type testtype)const + { if(testtype==type)return true; if( (type==TYPE_REAL || type==TYPE_TIME) && (testtype==TYPE_REAL || testtype==TYPE_TIME) ) -- 2.7.4