store default colors
[mussa.git] / alg / glseqbrowser.cpp
index 5accb2cd0dc2bc89342b977c6e810a66409d5306..37fc0c0e31696ebedfe04f79561d5b48627589eb 100644 (file)
@@ -354,9 +354,11 @@ void GlSeqBrowser::push_sequence(GlSequence gs)
 
 void GlSeqBrowser::push_sequence(GlSequenceRef gs)
 {
+  ColorRef default_color(GlSequence::default_gene_color());
   GlSequenceRef new_gs(new GlSequence(gs));
-  // mark where the undefined sequence is
-  new_gs->add_annotations_for_undefined_sequence(draw_narrow_track);
+  new_gs->update_annotation_draw_function("gene", draw_narrow_track, default_color);
+  // mark where the sequence is
+  new_gs->add_annotations_for_defined_sequence(draw_track);
   
   clear_links();
   track_container.push_back(new_gs);