r17606 by jghali - #10786: crash when clicking gradient

scribus-commit scribus-commit at lists.scribus.net
Fri Jun 22 21:00:42 UTC 2012


Author: jghali
Date: Fri Jun 22 21:00:42 2012
New Revision: 17606

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17606
Log:
#10786: crash when clicking gradient

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

Modified: trunk/Scribus/scribus/ui/gradientpreview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17606&path=/trunk/Scribus/scribus/ui/gradientpreview.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/gradientpreview.cpp (original)
+++ trunk/Scribus/scribus/ui/gradientpreview.cpp Fri Jun 22 21:00:42 2012
@@ -228,7 +228,7 @@
 		}
 	}
 	Mpressed = false;
-	if (!onlyselect){
+	if ((!onlyselect) && (ActStop >= 0)){
 		emit gradientChanged();
 		QList<VColorStop*> cstops = fill_gradient.colorStops();
 		emit currStep(cstops.at(ActStop)->rampPoint);




More information about the scribus-commit mailing list