r23692 by jghali - Cleanup for scripter's cmdpage.cpp

scribus-commit scribus-commit at lists.scribus.net
Tue May 5 16:21:20 UTC 2020


Author: jghali
Date: Tue May  5 16:21:20 2020
New Revision: 23692

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23692
Log:
Cleanup for scripter's cmdpage.cpp

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

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23692&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp	Tue May  5 16:21:20 2020
@@ -27,8 +27,7 @@
 		return nullptr;
 	ScCore->primaryMainWindow()->view->DrawNew();
 	qApp->processEvents();
- //	Py_INCREF(Py_None);
- //	return Py_None;
+
 	Py_RETURN_NONE;
 }
 
@@ -314,8 +313,7 @@
 		}
 		currentDoc->currentPage()->guides.addHorizontal(ValueToPoint(guide), GuideManagerCore::Standard);
 	}
- 	Py_INCREF(Py_None);
- 	return Py_None;
+
 	Py_RETURN_NONE;
 }
 
@@ -367,8 +365,7 @@
 		}
 		currentDoc->currentPage()->guides.addVertical(ValueToPoint(guide), GuideManagerCore::Standard);
 	}
-// 	Py_INCREF(Py_None);
-// 	return Py_None;
+
 	Py_RETURN_NONE;
 }
 




More information about the scribus-commit mailing list