Code

correctly initialize vector in spitem.
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 4 Jan 2009 03:56:10 +0000 (03:56 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 4 Jan 2009 03:56:10 +0000 (03:56 +0000)
src/sp-item.cpp

index 886c5d4c2c5c3d0c7edcc8ddf1b8777beaf6edbb..8971c3abbd240951e11d07d2012ac7ec74589e6a 100644 (file)
@@ -47,6 +47,7 @@
 #include "sp-item-rm-unsatisfied-cns.h"
 #include "sp-pattern.h"
 #include "sp-switch.h"
+#include "sp-guide-constraint.h"
 #include "gradient-chemistry.h"
 #include "preferences.h"
 #include "conn-avoid-ref.h"
@@ -176,6 +177,8 @@ void SPItem::init() {
 
     this->avoidRef = new SPAvoidRef(this);
 
+    new (&this->constraints) std::vector<SPGuideConstraint>();
+
     new (&this->_transformed_signal) sigc::signal<void, Geom::Matrix const *, SPItem *>();
 }