r23739 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Sun May 10 15:03:49 UTC 2020


Author: jghali
Date: Sun May 10 15:03:48 2020
New Revision: 23739

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23739
Log:
Code style fixes

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

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdannotations.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23739&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdannotations.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdannotations.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdannotations.cpp	Sun May 10 15:03:48 2020
@@ -504,11 +504,11 @@
 	}
 	else
 	{
-		bool hasosg=false;
+		bool hasOSG = false;
 	#ifdef HAVE_OSG
-		hasosg=true;
+		hasOSG = true;
 	#endif
-		if (hasosg)
+		if (hasOSG)
 		{
 			i = m_doc->itemAdd(PageItem::OSGFrame, 
 			                   PageItem::Unspecified, 
@@ -520,7 +520,8 @@
 			                   m_doc->itemToolPrefs().imageFillColor, 
 			                   m_doc->itemToolPrefs().imageStrokeColor);
 		}
-		else{
+		else
+		{
 			PyErr_SetString(PyExc_RuntimeError,
 			QObject::tr("Doesn't have OSG can't create 3DAnnotation", "python error").toLocal8Bit().constData());
 			return nullptr;




More information about the scribus-commit mailing list