From f52664b29f297afee6c8e80c7ec1c4fbfe51f8f5 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 2 Nov 2018 22:35:47 -0500 Subject: [PATCH] Fixing custom plot naming. --- src/plot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plot.cpp b/src/plot.cpp index f0f647679..6a28d2653 100644 --- a/src/plot.cpp +++ b/src/plot.cpp @@ -192,10 +192,11 @@ Plot::set_output_path(pugi::xml_node plot_node) { // Set output file path std::stringstream filename; - filename << "plot_" << id_; if (check_for_node(plot_node, "filename")) { filename << get_node_value(plot_node, "filename"); + } else { + filename << "plot_" << id_; } // add appropriate file extension to name switch(type_) {