summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-11-07 02:42:27 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-11-07 02:42:27 +0000
commit8e73c9ee80c260c58698894332f08769e9f1ac22 (patch)
treef5882e1353eecbe3e82243b19a953d205581dc93 /gtk2_ardour/editor_mouse.cc
parent3069423106e9901ccad74624ad30756dd8338a36 (diff)
patch to prevent (mostly) CD marker being set for the start of the session
git-svn-id: svn://localhost/ardour2/trunk@2601 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index dc961f51ea..8efce4daac 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -549,8 +549,7 @@ Editor::button_press_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemTyp
return true;
case MarkerItem:
- if (Keyboard::modifier_state_equals (event->button.state,
- Keyboard::ModifierMask(Keyboard::Control|Keyboard::Shift))) {
+ if (Keyboard::modifier_state_equals (event->button.state, Keyboard::ModifierMask(Keyboard::Control|Keyboard::Shift))) {
hide_marker (item, event);
} else {
start_marker_grab (item, event);
@@ -2162,14 +2161,16 @@ Editor::start_marker_grab (ArdourCanvas::Item* item, GdkEvent* event)
if (location->is_mark()) {
marker_drag_line->show();
marker_drag_line->raise_to_top();
- }
- else {
+ } else {
range_marker_drag_rect->show();
range_marker_drag_rect->raise_to_top();
}
-
- if (is_start) show_verbose_time_cursor (location->start(), 10);
- else show_verbose_time_cursor (location->end(), 10);
+
+ if (is_start) {
+ show_verbose_time_cursor (location->start(), 10);
+ } else {
+ show_verbose_time_cursor (location->end(), 10);
+ }
}
void