From 7621b2807a3969495d5052590bc95e4911dd5606 Mon Sep 17 00:00:00 2001 From: JCrawfy Date: Mon, 18 Nov 2019 20:43:58 +1300 Subject: [PATCH] fix wrong iterator bug --- include/xlnt/utils/numeric.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xlnt/utils/numeric.hpp b/include/xlnt/utils/numeric.hpp index 5e59cc49..76b49d85 100644 --- a/include/xlnt/utils/numeric.hpp +++ b/include/xlnt/utils/numeric.hpp @@ -146,7 +146,7 @@ struct number_converter } std::string copy(s); auto decimal_pt = std::find(copy.begin(), copy.end(), '.'); - if (decimal_pt != s.end()) + if (decimal_pt != copy.end()) { *decimal_pt = ','; }