r24378 by jghali - Fix failure to load PDF import plugin on Mac

scribus-commit scribus-commit at lists.scribus.net
Tue Jan 5 21:23:59 UTC 2021


Author: jghali
Date: Tue Jan  5 21:23:59 2021
New Revision: 24378

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24378
Log:
Fix failure to load PDF import plugin on Mac

Modified:
    trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp
    trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h

Modified: trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24378&path=/trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.cpp	Tue Jan  5 21:23:59 2021
@@ -6,6 +6,8 @@
 */
 
 #include "pdftextrecognition.h"
+
+constexpr double PdfTextRegion::boundingBoxShape[32];
 
 /*
 *	constructor, initialize the textRegions vector and set the addChar mode

Modified: trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24378&path=/trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h	(original)
+++ trunk/Scribus/scribus/plugins/import/pdf/pdftextrecognition.h	Tue Jan  5 21:23:59 2021
@@ -61,22 +61,23 @@
 #
 	/*
 * the bounding box shape splines in percentage of width and height. In this case 100% as we want to clip shape to be the full TextBox width and height. */
-	static constexpr double boundingBoxShape[32] = { 0.0,0.0
-							,0.0,0.0
-							,100.0,0.0
-							,100.0,0.0
-							,100.0,0.0
-							,100.0,0.0
-							,100.0,100.0
-							,100.0,100.0
-							,100.0,100.0
-							,100.0,100.0
-							,0.0,100.0
-							,0.0,100.0
-							,0.0,100.0
-							,0.0,100.0
-							,0.0,0.0
-							,0.0,0.0
+	static constexpr double boundingBoxShape[32] = {
+		0.0, 0.0,
+		0.0, 0.0,
+		100.0, 0.0,
+		100.0, 0.0,
+		100.0, 0.0,
+		100.0, 0.0,
+		100.0, 100.0,
+		100.0, 100.0,
+		100.0, 100.0,
+		100.0, 100.0,
+		0.0, 100.0,
+		0.0, 100.0,
+		0.0, 100.0,
+		0.0, 100.0,
+		0.0, 0.0,
+		0.0, 0.0
 	};
 
 	QPointF pdfTextRegionBasenOrigin = QPointF({}, {});




More information about the scribus-commit mailing list