From 6828cf6eaf6def797bca17e4eda047123fb6236c Mon Sep 17 00:00:00 2001 From: Morgan Hardwood Date: Sat, 30 Sep 2017 15:41:52 +0200 Subject: [PATCH] Fixes crash involving locale conversion of lensfun strings, by Floessie, fixes #4117 --- rtgui/lensprofile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/lensprofile.cc b/rtgui/lensprofile.cc index fb4c34069..0c3b227aa 100644 --- a/rtgui/lensprofile.cc +++ b/rtgui/lensprofile.cc @@ -601,7 +601,7 @@ void LensProfilePanel::LFDbHelper::fillLensfunCameras() camnames[c.getMake()].insert(c.getModel()); if (options.rtSettings.verbose) { - std::cout << " found: " << c.getDisplayString() << std::endl; + std::cout << " found: " << c.getDisplayString().c_str() << std::endl; } } for (auto &p : camnames) { @@ -630,7 +630,7 @@ void LensProfilePanel::LFDbHelper::fillLensfunLenses() lenses[make].insert(name); if (options.rtSettings.verbose) { - std::cout << " found: " << l.getDisplayString() << std::endl; + std::cout << " found: " << l.getDisplayString().c_str() << std::endl; } } for (auto &p : lenses) {