X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Fglseqbrowser.cpp;h=03afaf56c4fac3707735f9afa90752d96fea19ab;hp=e9d55b985571fa2785fca31c10ee480bc8cefbd6;hb=f3e6762bedaf3775619a36f4103c8cf35d2ca887;hpb=a5fdb434dd0e6d18fe98e9ee57cb5169ce4c5842 diff --git a/alg/glseqbrowser.cpp b/alg/glseqbrowser.cpp index e9d55b9..03afaf5 100644 --- a/alg/glseqbrowser.cpp +++ b/alg/glseqbrowser.cpp @@ -336,26 +336,27 @@ void GlSeqBrowser::clear_selection() void GlSeqBrowser::push_sequence(const Sequence& s) { - GlSequence gs(s, color_mapper); + GlSequenceRef gs(new GlSequence(s, color_mapper)); push_sequence(gs); } -void GlSeqBrowser::push_sequence(boost::shared_ptr s) +void GlSeqBrowser::push_sequence(SequenceRef s) { - boost::shared_ptr gs(new GlSequence(*s, color_mapper)); + GlSequenceRef gs(new GlSequence(*s, color_mapper)); push_sequence(gs); } void GlSeqBrowser::push_sequence(GlSequence gs) { - boost::shared_ptr new_gs(new GlSequence(gs)); + GlSequenceRef new_gs(new GlSequence(gs)); push_sequence(new_gs); } -void GlSeqBrowser::push_sequence(boost::shared_ptr gs) +void GlSeqBrowser::push_sequence(GlSequenceRef gs) { + GlSequenceRef new_gs(new GlSequence(gs)); clear_links(); - track_container.push_back(gs); + track_container.push_back(new_gs); update_layout(); if (track_container.size() > 1) path_segments.push_back(pair_segment_map());