r24459 by jghali - #16464: Scribus appimage crashes after patch of barcode

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 8 20:40:09 UTC 2021


Author: jghali
Date: Mon Feb  8 20:40:09 2021
New Revision: 24459

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24459
Log:
#16464: Scribus appimage crashes after patch of barcode

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=24459&path=/trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp	(original)
+++ trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp	Mon Feb  8 20:40:09 2021
@@ -677,7 +677,7 @@
 #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
 	QPixmap currentPixmap = l->pixmap(Qt::ReturnByValue);
 #else
-	QPixmap currentPixmap = *(l->pixmap());
+	QPixmap currentPixmap = l->pixmap() ? *(l->pixmap()) : QPixmap();
 #endif
 	
 	double pixelRatio = l->devicePixelRatioF();




More information about the scribus-commit mailing list