Make sure we don't deactivate un-activated plugins or re-activate already activated...
[ardour.git] / gtk2_ardour / editor_imageframe.cc
index b90ce174236346f85f695aa290304a9134c20f8d..504ff545aa6971fdafaa09f76e3a83a69d1520af 100644 (file)
@@ -16,7 +16,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include "imageframe_view.h"
@@ -100,16 +99,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