summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-07-10 15:58:09 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-07-10 15:58:09 +0000
commit43c850cdf3bdc88e624a431a7fbd42e3e85fc7d3 (patch)
tree259cb0d6b630caa5bcc0cd9ea782bf5c8f67c93b /gtk2_ardour/editor_drag.h
parente89bdcd9ebb774294119cf349b3faaf0fa9ffd1f (diff)
cleaner version of previous commit's fix for AutomationRangeDrag y fraction computation
git-svn-id: svn://localhost/ardour2/branches/3.0@13013 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r--gtk2_ardour/editor_drag.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h
index 6127355965..2177555856 100644
--- a/gtk2_ardour/editor_drag.h
+++ b/gtk2_ardour/editor_drag.h
@@ -957,7 +957,8 @@ public:
private:
void setup (std::list<boost::shared_ptr<AutomationLine> > const &);
-
+ double y_fraction (boost::shared_ptr<AutomationLine>, double global_y_position) const;
+
std::list<ARDOUR::AudioRange> _ranges;
/** A line that is part of the drag */
@@ -970,7 +971,7 @@ private:
};
std::list<Line> _lines;
- TimeAxisView* track_view;
+ double y_origin;
bool _nothing_to_drag;
};