changeset 198:5cac684eb12e

Fix manual beatnote sign setting
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 31 Mar 2014 17:03:37 +0200
parents 79db2c87d1b0
children 111610d871af
files FXAnalyse.c
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/FXAnalyse.c	Mon Mar 31 17:03:37 2014 +0200
+++ b/FXAnalyse.c	Mon Mar 31 17:03:37 2014 +0200
@@ -1999,13 +1999,23 @@
 	return 0;
 }
 
-int CVICALLBACK CB_Sign3 (int panel, int control, int event,
+int CVICALLBACK CB_BeatnoteSign (int panel, int control, int event,
 		void *callbackData, int eventData1, int eventData2)
 {
 	switch (event)
 	{
 		case EVENT_COMMIT:
-			GetCtrlVal(panel, control, &Sign3);
+			switch(control) {
+				case PANEL_SIGN1:
+					GetCtrlVal(panel, control, &Sign1);
+					break;
+				case PANEL_SIGN2:
+					GetCtrlVal(panel, control, &Sign2);
+					break;
+				case PANEL_SIGN3:
+					GetCtrlVal(panel, control, &Sign3);
+					break;
+			}
 			break;
 	}
 	return 0;