summaryrefslogtreecommitdiffstats
path: root/src/importers/rezkonvimporter.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-03 02:34:04 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-08-04 03:34:06 +0300
commit7b2d5032f9573eaafa300a3159971e37125fd2d9 (patch)
tree3c607af6e7b30df63665f1ff6a950cd559152fb0 /src/importers/rezkonvimporter.cpp
parent84991f49a0ab963597b697d99e9f3c1c6c9053ee (diff)
downloadkrecipes-7b2d5032.tar.gz
krecipes-7b2d5032.zip
Use locale-unaware functions when importing files
Locale-aware version of MixedNumber::fromString() were causing problems when locale has a different decimal separator than dot (`.`). Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit adf2fa32500d33417b6e6ac9e2867f3ab3eede34)
Diffstat (limited to 'src/importers/rezkonvimporter.cpp')
-rw-r--r--src/importers/rezkonvimporter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/importers/rezkonvimporter.cpp b/src/importers/rezkonvimporter.cpp
index 49a1e0b..450bcf5 100644
--- a/src/importers/rezkonvimporter.cpp
+++ b/src/importers/rezkonvimporter.cpp
@@ -281,8 +281,8 @@ void RezkonvImporter::readRange( const TQString &range_str, double &amount, doub
TQString from = range_str.section( '-', 0, 0 );
TQString to = range_str.section( '-', 1, 1 );
- amount = MixedNumber::fromString( from ).toDouble();
+ amount = MixedNumber::fromString( from, nullptr, /* locale_aware = */ false ).toDouble();
if ( !to.stripWhiteSpace().isEmpty() )
- amount_offset = MixedNumber::fromString( to ).toDouble() - amount;
+ amount_offset = MixedNumber::fromString( to, nullptr, /* locale_aware = */ false ).toDouble() - amount;
}