Code

Dutch tips tutorial added.
[inkscape.git] / src / libvpsc / constraint.h
index 3da7449cd247792c16f6cdf2109220443e16e1e8..8a8529d7ec03660c585dd65dd96d604156f4bc01 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <iostream>
 #include "variable.h"
+namespace vpsc {
 
 class Constraint
 {
@@ -25,7 +26,7 @@ public:
        double gap;
        double lm;
        Constraint(Variable *left, Variable *right, double gap, bool equality=false);
-       ~Constraint();
+    virtual ~Constraint();
        inline double slack() const { return right->position() - gap - left->position(); }
        long timeStamp;
        bool active;
@@ -54,5 +55,6 @@ static inline bool compareConstraints(Constraint *const &l, Constraint *const &r
        }
        return sl < sr;
 }
+}
 
 #endif // SEEN_REMOVEOVERLAP_CONSTRAINT_H