r24487 by jghali - Fix failure to build if HAVE_SVNVERSION and SVNVERSION are not defined

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 15 19:36:45 UTC 2021


Author: jghali
Date: Mon Feb 15 19:36:45 2021
New Revision: 24487

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24487
Log:
Fix failure to build if HAVE_SVNVERSION and SVNVERSION are not defined

Modified:
    trunk/Scribus/scribus/api/api_application.cpp

Modified: trunk/Scribus/scribus/api/api_application.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24487&path=/trunk/Scribus/scribus/api/api_application.cpp
==============================================================================
--- trunk/Scribus/scribus/api/api_application.cpp	(original)
+++ trunk/Scribus/scribus/api/api_application.cpp	Mon Feb 15 19:36:45 2021
@@ -131,8 +131,10 @@
 
 	QString getSVNRevision()
 	{
-		if (isSVN() && haveSVNRevision())
+#if defined(HAVE_SVNVERSION) && defined(SVNVERSION)
+		if (isSVN())
 			return QString("%1").arg(SVNVERSION);
+#endif
 		return QString();
 	}
 




More information about the scribus-commit mailing list