freebsd-ports/print/scribus/files/patch-scribus_plugins_scriptplugin_macro.cpp
Thierry Thomas a5851fa5fe Update to version 1.2.2.1.
PR:		83161
Submitted by:	KATO Tsuguru <tkato432 (at) yahoo.com>
2005-07-16 21:30:30 +00:00

20 lines
676 B
C++

--- scribus/plugins/scriptplugin/macro.cpp.orig Sun Jul 3 16:34:04 2005
+++ scribus/plugins/scriptplugin/macro.cpp Mon Jul 4 13:10:49 2005
@@ -53,7 +53,7 @@
{
assert(!PyErr_Occurred());
- if ((newName == QString::null) or (newName == ""))
+ if ((newName == QString::null) || (newName == ""))
qDebug("Macro::Macro() called with NULL or '' name");
// set the macro name
@@ -344,7 +344,7 @@
// Must not return with an exception set
void Macro::setMacroName(QString newName)
{
- if ((newName == QString::null) or (newName == ""))
+ if ((newName == QString::null) || (newName == ""))
{
qDebug("Macro::setMacroName(): called with NULL or '' name");
return;