Code

+ Fix bug #179840, forking of LPEs
[inkscape.git] / src / live_effects / lpeobject.h
index c2e9fafa7949582827d1cc928f131444fac8ee8a..bc13e596adbb50fa6d12bf47c3a2760a087e4503 100644 (file)
@@ -4,7 +4,7 @@
 /*
  * Inkscape::LivePathEffect
  *
-* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
+* Copyright (C) Johan Engelen 2007-2008 <j.b.c.engelen@utwente.nl>
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 #define LIVEPATHEFFECT(o)    (G_TYPE_CHECK_INSTANCE_CAST((o), TYPE_LIVEPATHEFFECT, LivePathEffectObject))
 #define IS_LIVEPATHEFFECT(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), TYPE_LIVEPATHEFFECT))
 
-/*
-namespace Inkscape {
-namespace LivePathEffect {
-    class Effect;
-};
-};
-*/
-
 struct LivePathEffectObject : public SPObject {
-    Inkscape::LivePathEffect::EffectType effecttype;  // fixme: i think this is not needed
+    Inkscape::LivePathEffect::EffectType effecttype;
     Inkscape::LivePathEffect::Effect *lpe;
 
     bool effecttype_set;
+
+    LivePathEffectObject * fork_private_if_necessary(int nr_of_allowed_users = 1);
 };
 
 /// The LivePathEffect vtable.