From e9700170e72640c1569370ae42960590349ce9cd Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Tue, 15 Feb 2022 21:18:03 -0500 Subject: [PATCH] Small bugfix to the centering of text in the integral region --- Navigator/src/Navigator/Editor/SpectrumPanel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Navigator/src/Navigator/Editor/SpectrumPanel.cpp b/Navigator/src/Navigator/Editor/SpectrumPanel.cpp index 1de0385..bccd8ef 100644 --- a/Navigator/src/Navigator/Editor/SpectrumPanel.cpp +++ b/Navigator/src/Navigator/Editor/SpectrumPanel.cpp @@ -10,9 +10,9 @@ namespace Navigator { stream << "Region: " << name << "\n" << "Integral: " << results.integral << "\n"; if (results.integral == 0.0) return stream.str(); - stream << "Centroid X: " << results.cent_x << " Std. Dev. X: " << results.sigma_x << " FWHM X: " << 2.355 * results.sigma_x << "\n"; + stream << "Centroid X: " << results.cent_x << "\nStd. Dev. X: " << results.sigma_x << "\nFWHM X: " << 2.355 * results.sigma_x << "\n"; if(is2D) - stream << "Centroid Y: " << results.cent_y << " Std. Dev. Y: " << results.sigma_y << " FWHM Y: " << 2.355 * results.sigma_y << "\n"; + stream << "Centroid Y: " << results.cent_y << "\nStd. Dev. Y: " << results.sigma_y << "\nFWHM Y: " << 2.355 * results.sigma_y << "\n"; return stream.str(); } @@ -92,7 +92,7 @@ namespace Navigator { } for (size_t i = 0; i < m_integralRegions.size(); i++) { - auto& region = m_integralRegions[i]; + auto region = m_integralRegions[i]; if (m_zoomedGram.name == region.histogram_name) { ImPlot::DragRect(int(i), ®ion.region.X.Min, ®ion.region.Y.Min, ®ion.region.X.Max, ®ion.region.Y.Max, ImVec4(1, 0, 1, 1));