From daf129f1ec4affea4c1ee38da3e85fa41561d188 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 13 Jun 2019 22:44:58 -0500 Subject: [PATCH] Initializing overlap color in the class constructor. --- src/plot.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plot.cpp b/src/plot.cpp index e9069a0d0..93d0abaf2 100644 --- a/src/plot.cpp +++ b/src/plot.cpp @@ -661,7 +661,6 @@ void Plot::set_overlap_color(pugi::xml_node plot_node) { color_overlaps_ = false; if (check_for_node(plot_node, "show_overlaps")) { color_overlaps_ = get_node_value_bool(plot_node, "show_overlaps"); - overlap_color_ = RED; // check for custom overlap color if (check_for_node(plot_node, "overlap_color")) { if (!color_overlaps_) { @@ -690,7 +689,7 @@ void Plot::set_overlap_color(pugi::xml_node plot_node) { } Plot::Plot(pugi::xml_node plot_node) - : index_meshlines_mesh_{-1} + : index_meshlines_mesh_{-1}, overlap_color_{RED} { set_id(plot_node); set_type(plot_node);