Author: Carlos Lopez <[email protected]>
Date:   Thu Jul 28 07:50:29 2011 +0200

Add construction member (constructor by reference) to be able to compile. 
Rename a bad parameter

---

 synfig-core/src/synfig/dashitem.cpp |    7 ++++++-
 synfig-core/src/synfig/dashitem.h   |    2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/synfig-core/src/synfig/dashitem.cpp 
b/synfig-core/src/synfig/dashitem.cpp
index 21650c7..8a163f2 100644
--- a/synfig-core/src/synfig/dashitem.cpp
+++ b/synfig-core/src/synfig/dashitem.cpp
@@ -55,9 +55,14 @@ DashItem::DashItem()
        set_side_type_after(TYPE_FLAT);
 }
 
+DashItem::DashItem(const DashItem &ref) :
+WidthPoint::WidthPoint(ref.get_offset(), ref.get_length(), 
ref.get_side_type_before(), ref.get_side_type_after())
+{
+}
+
 DashItem::DashItem(Real offset, Real length, int sidebefore, int sideafter)
 {
-       set_offset(position);
+       set_offset(offset);
        set_width(length);
        set_side_type_before(sidebefore);
        set_side_type_after(sideafter);
diff --git a/synfig-core/src/synfig/dashitem.h 
b/synfig-core/src/synfig/dashitem.h
index 5fd0a78..bfc6475 100644
--- a/synfig-core/src/synfig/dashitem.h
+++ b/synfig-core/src/synfig/dashitem.h
@@ -28,7 +28,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#include "uniqueid.h"
 #include "widthpoint.h"
 
 /* === M A C R O S ========================================================= */
@@ -44,6 +43,7 @@ class DashItem : public WidthPoint
 public:
 
        DashItem();
+       DashItem(const DashItem &ref);
        DashItem(Real position, Real length, int sidebefore=TYPE_FLAT,
                int sideafter=TYPE_FLAT);
 


------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to