Skip to content

Commit 3d2e99b

Browse files
authored
Correct change_extension after unicode changes
1 parent 9a85fbc commit 3d2e99b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ifcconvert/IfcConvert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ template <typename T>
119119
T change_extension(const T& fn, const T& ext) {
120120
typename T::size_type dot = fn.find_last_of('.');
121121
if (dot != T::npos) {
122-
return fn.substr(0, dot) + ext;
122+
return fn.substr(0, dot + 1) + ext;
123123
} else {
124124
return fn + ext;
125125
}

0 commit comments

Comments
 (0)