diff framework/MainWindowBase.cpp @ 721:453029d6e9bf spectrogram-export

Start work on spectrogram export code
author Chris Cannam
date Mon, 06 Jan 2020 14:47:12 +0000
parents 55f317633b93
children b06b18c15fd4
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Fri Dec 06 13:09:29 2019 +0000
+++ b/framework/MainWindowBase.cpp	Mon Jan 06 14:47:12 2020 +0000
@@ -2797,13 +2797,14 @@
 }
 
 bool
-MainWindowBase::exportLayerTo(Layer *layer, QString path, QString &error)
+MainWindowBase::exportLayerTo(Layer *layer, View *fromView,
+                              QString path, QString &error)
 {
     if (QFileInfo(path).suffix() == "") path += ".svl";
 
     QString suffix = QFileInfo(path).suffix().toLower();
 
-    auto model = ModelById::get(layer->getModel());
+    auto model = ModelById::get(layer->getExportModel(fromView));
     if (!model) {
         error = tr("Internal error: unknown model");
         return false;