r19108 by jghali - fix non working render frames on Windows

scribus-commit scribus-commit at lists.scribus.net
Sat May 10 21:36:21 UTC 2014


Author: jghali
Date: Sat May 10 21:36:21 2014
New Revision: 19108

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19108
Log:
fix non working render frames on Windows

Modified:
    trunk/Scribus/scribus/prefsmanager.cpp
    trunk/Scribus/scribus/util_file.cpp

Modified: trunk/Scribus/scribus/prefsmanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19108&path=/trunk/Scribus/scribus/prefsmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/prefsmanager.cpp (original)
+++ trunk/Scribus/scribus/prefsmanager.cpp Sat May 10 21:36:21 2014
@@ -1037,11 +1037,14 @@
 		return false;
 	if (appPrefs.extToolPrefs.latexCommands.isEmpty())
 		return false;
-	bool foundAny=false;
+	bool foundAny = false;
 	foreach (QString cmd, appPrefs.extToolPrefs.latexCommands)
 	{
 		if (fileInPath(cmd))
-			foundAny=true;
+		{
+			foundAny = true;
+			break;
+		}
 	}
 	return foundAny;
 }

Modified: trunk/Scribus/scribus/util_file.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19108&path=/trunk/Scribus/scribus/util_file.cpp
==============================================================================
--- trunk/Scribus/scribus/util_file.cpp (original)
+++ trunk/Scribus/scribus/util_file.cpp Sat May 10 21:36:21 2014
@@ -195,6 +195,10 @@
 	if (filename.isEmpty())
 		return false;
 	QString file = filename.split(' ', QString::SkipEmptyParts).at(0); //Ignore parameters
+#if defined(Q_OS_WIN32)
+	if (QFileInfo(file).suffix().isEmpty())
+		file += ".exe";
+#endif 
 
 	file = QDir::fromNativeSeparators(file);
 	if (file.indexOf('/') >= 0)




More information about the scribus-commit mailing list