r14280 by jghali - #8573 : UnicodeDecodeError in scripter

scribus-commit scribus-commit at lists.scribus.net
Wed Nov 11 15:15:40 CET 2009


Revision: 14280
Author: jghali
Date: 2009-11-11T07:12:33.628668Z
Commit message: #8573 : UnicodeDecodeError in scripter

Changeset: 
M  /trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp

Diffs:
Index: scribus/plugins/scriptplugin/cmdpage.cpp
===================================================================
--- scribus/plugins/scriptplugin/cmdpage.cpp	(revision 14279)
+++ scribus/plugins/scriptplugin/cmdpage.cpp	(revision 14280)
@@ -241,7 +241,7 @@
 		if (pageNr == ScCore->primaryMainWindow()->doc->Items->at(i)->OwnPage)
 		{
 			row = Py_BuildValue((char*)"(sii)",
-			                    ScCore->primaryMainWindow()->doc->Items->at(i)->itemName().toAscii().constData(),
+			                    ScCore->primaryMainWindow()->doc->Items->at(i)->itemName().toUtf8().constData(),
 			                    ScCore->primaryMainWindow()->doc->Items->at(i)->itemType(),
 			                    ScCore->primaryMainWindow()->doc->Items->at(i)->ItemNr
 			                   );




More information about the scribus-commit mailing list