Only export NULLs if something actually went wrong!

This commit is contained in:
baldurk
2018-02-02 12:54:45 +00:00
parent 0d1d7c482b
commit d6b6fcf2c1
+3
View File
@@ -3128,7 +3128,10 @@ void BufferViewer::exportData(const BufferExport &params)
bytes += d.stride * idx;
if(bytes + d.byteSize <= (const char *)d.end)
{
f->write(bytes, d.byteSize);
continue;
}
}
// if we didn't continue above, something was wrong, so write nulls