aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/generator/main.cpp')
-rw-r--r--sources/shiboken6/generator/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/main.cpp b/sources/shiboken6/generator/main.cpp
index ec0cf5de9..2c8bb54ac 100644
--- a/sources/shiboken6/generator/main.cpp
+++ b/sources/shiboken6/generator/main.cpp
@@ -110,7 +110,7 @@ static bool processProjectFile(QFile &projectFile, CommandLineArguments &args)
QByteArray key;
QString value;
if (split > 0) {
- key = line.left(split - 1).trimmed();
+ key = line.left(split).trimmed();
value = QString::fromUtf8(line.mid(split + 1).trimmed());
} else {
key = line;