From f55700c8b936dc3f346ccf11b78bfeaacbf24f0a 2010-02-21 14:50:32 From: florianlink Date: 2010-02-21 14:50:32 Subject: [PATCH] fixed builtin package name git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@130 ea8d5007-eb21-0410-b261-ccb3ea6e24a9 --- diff --git a/generator/setupgenerator.cpp b/generator/setupgenerator.cpp index 875362c..492f7de 100644 --- a/generator/setupgenerator.cpp +++ b/generator/setupgenerator.cpp @@ -126,7 +126,7 @@ void SetupGenerator::generate() s << "void PythonQt_init_" << shortPackName << "() {" << endl; if (shortPackName.endsWith("Builtin")) { - shortPackName = shortPackName.mid(shortPackName.length()-strlen("builtin")); + shortPackName = shortPackName.mid(0, shortPackName.length()-strlen("builtin")); } QStringList cppClassNames;