From 3d2e99b5fae2ec6cfa560e0baf9ea1492ee50b6c Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 28 May 2019 12:44:58 +0200 Subject: [PATCH] Correct change_extension after unicode changes --- src/ifcconvert/IfcConvert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index 4fd315261d..5c8c65f8f0 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -119,7 +119,7 @@ template T change_extension(const T& fn, const T& ext) { typename T::size_type dot = fn.find_last_of('.'); if (dot != T::npos) { - return fn.substr(0, dot) + ext; + return fn.substr(0, dot + 1) + ext; } else { return fn + ext; }