diff layer/Colour3DPlotExporter.cpp @ 1567:77ffd5421627

Don't write empty lines
author Chris Cannam
date Tue, 14 Jan 2020 13:19:18 +0000
parents a6a31908bd13
children b33b0b06133e
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;