X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Fglsequence.cpp;h=340a9ada0719b475753e9780fb082fbfe974a5d1;hp=eb6cfe94574b49496dea22ca11e8498a5585f377;hb=67888dae3b16b9d69aa846e393f11e7ff3633f16;hpb=5c3dc8c42679629c19ece07c0e63a53b1c69663f diff --git a/alg/glsequence.cpp b/alg/glsequence.cpp index eb6cfe9..340a9ad 100644 --- a/alg/glsequence.cpp +++ b/alg/glsequence.cpp @@ -256,14 +256,14 @@ void GlSequence::draw_annotations(GLfloat left, GLfloat right) const { // draw annotations GLfloat annotation_z = z() + 10.0; - const std::list& annots = Sequence::annotations(); + const SeqSpanRefList& annots = Sequence::annotations(); const MotifList& motifs = Sequence::motifs(); - for (std::list::const_iterator annot_itor = annots.begin(); + for (SeqSpanRefList::const_iterator annot_itor = annots.begin(); annot_itor != annots.end(); ++annot_itor) { glColor3f(0.0, 0.8, 0.0); - draw_box(left, right, x()+annot_itor->begin, x()+annot_itor->end, + draw_box(left, right, x()+(*annot_itor)->start(), x()+(*annot_itor)->stop(), height(), annotation_z); } // if motifs?