r14338 by fschmid - Fixed incorrect update of the transparency gradient type.

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 24 13:00:19 CET 2009


Revision: 14338
Author: fschmid
Date: 2009-11-24T02:50:38.094004Z
Commit message: Fixed incorrect update of the transparency gradient type.

Changeset: 
M  /trunk/Scribus/scribus/ui/transparencypalette.cpp

Diffs:
Index: scribus/ui/transparencypalette.cpp
===================================================================
--- scribus/ui/transparencypalette.cpp	(revision 14337)
+++ scribus/ui/transparencypalette.cpp	(revision 14338)
@@ -116,6 +116,10 @@
 		transpCalcGradient->setChecked(true);
 	if (currentItem->GrMask == 6)
 		transpCalcPattern->setChecked(true);
+	if ((currentItem->GrMask == 1) || (currentItem->GrMask == 4))
+		gradientType->setCurrentIndex(0);
+	else if ((currentItem->GrMask == 2) || (currentItem->GrMask == 5))
+		gradientType->setCurrentIndex(1);
 	connect(gradEdit, SIGNAL(gradientChanged()), this, SIGNAL(gradientChanged()));
 	connect(namedGradient, SIGNAL(activated(const QString &)), this, SLOT(setNamedGradient(const QString &)));
 	connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(slotGrad(int)));




More information about the scribus-commit mailing list