From 42b98edddd2fc3475b283dc11da55a812d3ce52b Mon Sep 17 00:00:00 2001 From: Jan Kuhlmann <33833587+M2-TE@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:52:36 +0100 Subject: [PATCH] fix faulty histogram return --- graphs.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/graphs.hpp b/graphs.hpp index 7619f82..92873fe 100644 --- a/graphs.hpp +++ b/graphs.hpp @@ -868,13 +868,10 @@ namespace graphs } if (aoptions.type != type_histogram) { - options aoptions_hist = aoptions; - aoptions_hist.type = type_histogram; + options hist_options = aoptions; + hist_options.type = type_histogram; + return graph(height, width, xmin, xmax, ymin, ymax, aaarray, hist_options); } - else { - return graph(height, width, xmin, xmax, ymin, ymax, aaarray, aoptions); - } - return graph(height, width, xmin, xmax, ymin, ymax, aaarray, aoptions); }