r24631 by jghali - Fix issue causing crash when trying to import text on Windows 32bit build

scribus-commit scribus-commit at lists.scribus.net
Wed Apr 21 21:31:20 UTC 2021


Author: jghali
Date: Wed Apr 21 21:31:20 2021
New Revision: 24631

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24631
Log:
Fix issue causing crash when trying to import text on Windows 32bit build

Modified:
    trunk/Scribus/scribus/gtgettext.cpp

Modified: trunk/Scribus/scribus/gtgettext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24631&path=/trunk/Scribus/scribus/gtgettext.cpp
==============================================================================
--- trunk/Scribus/scribus/gtgettext.cpp	(original)
+++ trunk/Scribus/scribus/gtgettext.cpp	Wed Apr 21 21:31:20 2021
@@ -238,9 +238,9 @@
 	// Pointer for the loaded plugin.
 	void* gtplugin;
 	// Type definition for GetText pointer in the function in question.
-	typedef void (*gt2ptr)(QString filename, QString encoding, bool textOnly, bool prefix, bool append, PageItem *textframe);
+	typedef void (*gt2ptr)(const QString& filename, const QString& encoding, bool textOnly, bool prefix, bool append, PageItem *textframe);
 	// Type definition for GetText pointer in the function in question.
-	typedef void (*sdem)(QString filename, QString encoding, bool textOnly, gtWriter *writer);
+	typedef void (*sdem)(const QString& filename, const QString& encoding, bool textOnly, gtWriter *writer);
 	// The point to the above.
 	gt2ptr fp_GetText2;
 	sdem fp_GetText;




More information about the scribus-commit mailing list