changing the set of links does need to redraw
authorDiane Trout <diane@caltech.edu>
Mon, 20 Mar 2006 20:09:16 +0000 (20:09 +0000)
committerDiane Trout <diane@caltech.edu>
Mon, 20 Mar 2006 20:09:16 +0000 (20:09 +0000)
Somehow I deleted an update that was needed for redrawing the links.
This puts one back in so changing the threshold works.

qui/MussaAlignedWindow.cpp
qui/seqbrowser/SequenceBrowserWidget.cpp

index e3735bd2282245a0a6d7313a23cf7f33ea747bf5..4419474b17e98511641198c5add6ff3e5b0d45d3 100644 (file)
@@ -195,8 +195,6 @@ void MussaAlignedWindow::computeMatchLines()
         // draw for matches stretching across all sequences
         if (full_match)
         {
-          //fl_line_style(FL_SOLID, 1, NULL);
-          
           // now can draw the line for each bp in this window that matches
           // grrr, need to ask if anyone cares if I switch the seq 
           // top-bot order...
@@ -217,19 +215,6 @@ void MussaAlignedWindow::computeMatchLines()
               rc_2 = window_length;        
             }
             
-            // set offset based on current alignment for which bp to show
-            //offset1 = seq_align_offsets[i2];
-            //offset2 = seq_align_offsets[i2+1];
-            
-            if ( ( rc_list[i2] || rc_list[i2+1] ) &&
-                !(rc_list[i2] && rc_list[i2+1] ) ) {
-              ;
-              //fl_color(FL_BLUE);
-            } else {
-              ;
-              //fl_color(FL_RED);
-            }
-            
             // maybe shouldn't recalc these, but store values from first loop
             x_start = (abs((int) (a_path[i2]-rc_1+win_i)));
             x_end =   (abs((int) (a_path[i2+1]-rc_2+win_i)));
index dbfa4880d173fed76721ffceb6f846c3bea6c6ee..121a362ac9dd7d8d317a4e7f51384bfab56f5b44 100644 (file)
@@ -88,6 +88,7 @@ void SequenceBrowserWidget::link(const std::vector<int>& path,
                                  int length)
 {
   scrollable_browser.browser().link(path, isRC, length);
+  scrollable_browser.browser().update();
 }
 
 const std::set<int> SequenceBrowserWidget::selectedPaths() const