Decreased region opacity, smoothed out canvas/tempo line colours.
[ardour.git] / gtk2_ardour / editor_imageframe.cc
index b90ce174236346f85f695aa290304a9134c20f8d..b65ce93178b58ec0abc0fd83aee1d3cc9974818f 100644 (file)
@@ -100,16 +100,14 @@ Editor::scroll_timeaxis_to_imageframe_item(const TimeAxisViewItem* item)
        nframes_t offset = 0;
 
        nframes_t x_pos = 0 ;
-       if(item->get_position() < offset)
-       {
+
+       if (item->get_position() < offset) {
                x_pos = 0 ;
-       }
-       else
-       {
-               x_pos = item->get_position() - offset + (item->get_duration() / 2) ;
+       } else {
+               x_pos = item->get_position() - offset + (item->get_duration() / 2);
        }
        
-       reposition_x_origin(x_pos) ;
+       reset_x_origin (x_pos);
 }
 
 void