r25109 by craig - #16785: Apply patch to remove include text option for 2D barcodes

scribus-commit scribus-commit at lists.scribus.net
Fri Jun 17 21:03:28 UTC 2022


Author: craig
Date: Fri Jun 17 21:03:28 2022
New Revision: 25109

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=25109
Log:
#16785: Apply patch to remove include text option for 2D barcodes

Modified:
    trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp

Modified: trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=25109&path=/trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp	(original)
+++ trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp	Fri Jun 17 21:03:28 2022
@@ -155,9 +155,9 @@
 
 
 	// Which options checkboxes are enabled for each encoder
-	QStringList includetextAvail = encoderlist;
-	foreach (const QString& enc, includetextAvail)
-		resincludetextAvail[enc] = true;
+	// Check whether `includetext` option is available for each encoder
+	for(const QString &enc : encoderlist)
+		resincludetextAvail[enc] = resexops[enc].contains("includetext");
 
 	QStringList guardwhitespaceAvail;
 	guardwhitespaceAvail << "ean13" << "ean8" << "isbn" << "ismn" << "issn" << "ean13composite" << "ean8composite";




More information about the scribus-commit mailing list