r24809 by jghali - Fix potential stack overflow caused by bad copy/paste error

scribus-commit scribus-commit at lists.scribus.net
Tue Jan 18 19:00:03 UTC 2022


Author: jghali
Date: Tue Jan 18 19:00:03 2022
New Revision: 24809

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24809
Log:
Fix potential stack overflow caused by bad copy/paste error

Modified:
    trunk/Scribus/scribus/ui/cpalette.cpp

Modified: trunk/Scribus/scribus/ui/cpalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24809&path=/trunk/Scribus/scribus/ui/cpalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/cpalette.cpp	(original)
+++ trunk/Scribus/scribus/ui/cpalette.cpp	Tue Jan 18 19:00:03 2022
@@ -971,7 +971,7 @@
 void ColorPalette::showGradient(int number)
 {
 	bool sigBlocked = fillModeCombo->blockSignals(true);
-	if (number==-1)
+	if (number == -1)
 	{
 		fillModeCombo->setCurrentIndex(0);
 	}
@@ -1082,7 +1082,7 @@
 void ColorPalette::showGradientStroke(int number)
 {
 	bool sigBlocked = strokeModeCombo->blockSignals(true);
-	if (number==-1 || number == 0)
+	if (number == -1 || number == 0)
 		strokeModeCombo->setCurrentIndex(0);
 	else if (number > 0 && number < 8)
 	{
@@ -1101,7 +1101,7 @@
 		if (patternList->count() == 0)
 		{
 			strokeModeCombo->setCurrentIndex(0);
-			emit NewGradient(Gradient_None);
+			emit NewGradientS(Gradient_None);
 		}
 		else
 			strokeModeCombo->setCurrentIndex(2);




More information about the scribus-commit mailing list