changeset 1569:b33b0b06133e

Merge from branch csv-export-dialog
author Chris Cannam
date Tue, 14 Jan 2020 15:48:44 +0000
parents 77ffd5421627 (diff) 3943553b95b0 (current diff)
children 9095fbec4e52
files layer/Colour3DPlotExporter.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/layer/Colour3DPlotExporter.cpp	Tue Jan 14 15:41:17 2020 +0000
+++ b/layer/Colour3DPlotExporter.cpp	Tue Jan 14 15:48:44 2020 +0000
@@ -229,8 +229,10 @@
                 list << QString("%1").arg(value);
             }
         }
-        
-        s += list.join(delimiter) + "\n";
+
+        if (!list.empty()) {
+            s += list.join(delimiter) + "\n";
+        }
     }
 
     return s;