r23340 by jghali - Fix error message in scripter function

scribus-commit scribus-commit at lists.scribus.net
Wed Nov 6 11:53:50 UTC 2019


Author: jghali
Date: Wed Nov  6 11:53:50 2019
New Revision: 23340

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23340
Log:
Fix error message in scripter function

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23340&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp	Wed Nov  6 11:53:50 2019
@@ -478,7 +478,7 @@
 		return nullptr;
 	if (!item->isTextFrame() && !item->isPathText())
 	{
-		PyErr_SetString(WrongFrameTypeError, QObject::tr("Cannot layout text for a non-text frame.", "python error").toLocal8Bit().constData());
+		PyErr_SetString(WrongFrameTypeError, QObject::tr("Cannot layout text of a non-text frame.", "python error").toLocal8Bit().constData());
 		return nullptr;
 	}
 	item->layout();




More information about the scribus-commit mailing list