diff layer/TimeValueLayer.cpp @ 10:8f5b812baaee

* Hook up SV file i/o. You can now save and load sessions. Some problems -- gain is not reloaded correctly for waveforms, reloaded panes are not properly reconnected to the panner, and no doubt plenty of others.
author Chris Cannam
date Tue, 17 Jan 2006 17:45:55 +0000
parents 634324c6296e
children 2d5005f2b3d9
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Mon Jan 16 18:04:09 2006 +0000
+++ b/layer/TimeValueLayer.cpp	Tue Jan 17 17:45:55 2006 +0000
@@ -74,8 +74,8 @@
 
     if (name == tr("Colour")) {
 
-	*min = 0;
-	*max = 5;
+	if (min) *min = 0;
+	if (max) *max = 5;
 
 	if (m_colour == Qt::black) deft = 0;
 	else if (m_colour == Qt::darkRed) deft = 1;
@@ -86,8 +86,8 @@
 
     } else if (name == tr("Plot Type")) {
 	
-	*min = 0;
-	*max = 4;
+	if (min) *min = 0;
+	if (max) *max = 4;
 	
 	deft = int(m_plotStyle);