changeset 1567:77ffd5421627

Don't write empty lines
author Chris Cannam
date Tue, 14 Jan 2020 13:19:18 +0000
parents 1f80a514ce29
children b33b0b06133e
files layer/Colour3DPlotExporter.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/layer/Colour3DPlotExporter.cpp	Fri Jan 10 14:54:27 2020 +0000
+++ b/layer/Colour3DPlotExporter.cpp	Tue Jan 14 13:19:18 2020 +0000
@@ -235,8 +235,10 @@
                 list << QString("%1").arg(value);
             }
         }
-        
-        s += list.join(delimiter) + "\n";
+
+        if (!list.empty()) {
+            s += list.join(delimiter) + "\n";
+        }
     }
 
     return s;