summaryrefslogtreecommitdiff
path: root/gtk2_ardour/crossfade_edit.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-11-25 20:37:39 +0000
committerDavid Robillard <d@drobilla.net>2010-11-25 20:37:39 +0000
commit8b68ed57ec5c075261639435be3290c3ba8177eb (patch)
tree309cfbdec064a3134678facbfec835aaa46f2cef /gtk2_ardour/crossfade_edit.cc
parentc862d320ffccf739785e4b9aa59d7842e6f50ace (diff)
Fix some messed up code (spacey tabs).
(There is faar more of this... FIX YOUR EDITORS!) git-svn-id: svn://localhost/ardour2/branches/3.0@8086 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/crossfade_edit.cc')
-rw-r--r--gtk2_ardour/crossfade_edit.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/gtk2_ardour/crossfade_edit.cc b/gtk2_ardour/crossfade_edit.cc
index 49e5ee0609..987a3f2827 100644
--- a/gtk2_ardour/crossfade_edit.cc
+++ b/gtk2_ardour/crossfade_edit.cc
@@ -423,10 +423,10 @@ CrossfadeEditor::point_event (GdkEvent* event, Point* point)
if (point == fade[current].points.front() || point == fade[current].points.back()) {
new_x = point->x;
- new_y = point->y;
+ new_y = point->y;
} else {
new_x = (event->motion.x - canvas_border)/effective_width();
- new_y = 1.0 - ((event->motion.y - canvas_border)/effective_height());
+ new_y = 1.0 - ((event->motion.y - canvas_border)/effective_height());
}
point->move_to (x_coordinate (new_x), y_coordinate (new_y),
@@ -504,17 +504,17 @@ CrossfadeEditor::add_control_point (double x, double y)
void
CrossfadeEditor::Point::move_to (double nx, double ny, double xfract, double yfract)
{
- if ( xfract < 0.0 ) {
- xfract = 0.0;
- } else if ( xfract > 1.0 ) {
- xfract = 1.0;
- }
+ if ( xfract < 0.0 ) {
+ xfract = 0.0;
+ } else if ( xfract > 1.0 ) {
+ xfract = 1.0;
+ }
- if ( yfract < 0.0 ) {
- yfract = 0.0;
- } else if ( yfract > 1.0 ) {
- yfract = 1.0;
- }
+ if ( yfract < 0.0 ) {
+ yfract = 0.0;
+ } else if ( yfract > 1.0 ) {
+ yfract = 1.0;
+ }
const double half_size = rint(size/2.0);
double x1 = nx - half_size;
@@ -873,7 +873,7 @@ CrossfadeEditor::reset ()
set (xfade->fade_in(), In);
set (xfade->fade_out(), Out);
- curve_select_clicked (current);
+ curve_select_clicked (current);
}
void