Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /kwave/SignalWidget.cpp [5ae88a] .. [6f8185] Maximize Restore

  Switch to side-by-side view

--- a/kwave/SignalWidget.cpp
+++ b/kwave/SignalWidget.cpp
@@ -2359,7 +2359,7 @@
     info.setLength(last - first + 1);
     info.setRate(rate);
     info.setBits(bits);
-    info.setTracks(src.count());
+    info.setTracks(src.tracks());
 
     if (!d->encode(this, src, info)) {
 	delete d;
@@ -2409,7 +2409,6 @@
     if (KwaveDrag::canDecode(event)) {
 	UndoTransactionGuard undo(m_signal_manager, i18n("drag and drop"));
 	MultiTrackReader src;
-	MultiTrackWriter dst;
 	Signal sig;
 
 	if (KwaveDrag::decode(this, event, sig)) {
@@ -2423,7 +2422,7 @@
 	     */
 
 	    sig.openMultiTrackReader(src, sig.allTracks(), 0, len-1);
-	    m_signal_manager.openMultiTrackWriter(dst,
+	    MultiTrackWriter dst(m_signal_manager,
 		m_signal_manager.selectedTracks(), Insert,
 		pos, pos+len-1);
 	    /** @todo add a converter if rate does not match */