Fix 2458112: default transform GUIDs to random values, not zero. Initialise the...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 22 Dec 2008 10:28:50 +0000 (10:28 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 22 Dec 2008 10:28:50 +0000 (10:28 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2320 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/lyr_std/insideout.cpp
synfig-core/trunk/src/synfig/transform.h

index e5e65be..1ed9c2c 100644 (file)
@@ -106,7 +106,7 @@ class InsideOut_Trans : public Transform
 {
        etl::handle<const InsideOut> layer;
 public:
-       InsideOut_Trans(const InsideOut* x):layer(x) { }
+       InsideOut_Trans(const InsideOut* x):Transform(x->get_guid()),layer(x) { }
 
        synfig::Vector perform(const synfig::Vector& x)const
        {
index fb8c5a1..a235b22 100644 (file)
@@ -49,7 +49,7 @@ public:
        typedef etl::handle<Transform> Handle;
 
 protected:
-       Transform(const GUID& guid=GUID(0)):guid_(guid) { }
+       Transform(const GUID& guid=GUID()):guid_(guid) { }
 
 public: