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_) {