[SCM] gsequencer/upstream: fixed AgsNoteEdit's selection
jkraehemann-guest at users.alioth.debian.org
jkraehemann-guest at users.alioth.debian.org
Sun Jun 14 16:07:01 UTC 2015
The following commit has been merged in the upstream branch:
commit 1b6d68308e389b2f3169f5ab4f8668f28a41acc6
Author: Joël Krähemann <weedlight at gmail.com>
Date: Mon Apr 13 20:27:44 2015 +0000
fixed AgsNoteEdit's selection
diff --git a/src/ags/X/editor/ags_note_edit_callbacks.c b/src/ags/X/editor/ags_note_edit_callbacks.c
index 2a3776b..6831f20 100644
--- a/src/ags/X/editor/ags_note_edit_callbacks.c
+++ b/src/ags/X/editor/ags_note_edit_callbacks.c
@@ -704,9 +704,18 @@ ags_note_edit_drawing_area_motion_notify_event (GtkWidget *widget, GdkEventMotio
prev_x1 = note_edit->control.x1;
- note_edit->control.x1 = (guint) event->x;
- note_edit->control.y1 = (guint) event->y;
+ if(event->x >= 0.0){
+ note_edit->control.x1 = (guint) event->x;
+ }else{
+ note_edit->control.x1 = 0;
+ }
+ if(event->y >= 0.0){
+ note_edit->control.y1 = (guint) event->y;
+ }else{
+ note_edit->control.y1 = 0;
+ }
+
machine = editor->selected_machine;
note = note_edit->control.note;
--
gsequencer packaging
More information about the pkg-multimedia-commits
mailing list