ticket:104 fix some pointer problems with MussaAlignedWindow
[mussa.git] / alg / glseqbrowser.hpp
index 109bc5055b0d1d5ed46f3c810de5ddf41cebadaa..8ad16c4bdbcd9d1dc32013518c46cf82b536831a 100644 (file)
@@ -63,6 +63,8 @@ public:
 
   //! clear our tracks and connections
   void clear();
+  //! clear everything related to a selection
+  void clear_selection();
 
   //! add a sequence to the back of our track container
   void push_sequence(const Sequence &s);
@@ -109,6 +111,7 @@ public:
     rect(T t, T l, T b, T r) : top(t), left(l), bottom(b), right(r) {}
     T width() { return right - left; }
     T height() { return top - bottom; }
+    void clear() { top=0; left=0; bottom=0; right=0; }
   };
 
   struct Segment