Fixing custom plot naming.

This commit is contained in:
Patrick Shriwise 2018-11-02 22:35:47 -05:00
parent daffe0923d
commit f52664b29f

View file

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