View Issue Details

IDProjectCategoryView StatusLast Update
0017390ScribusGeneralpublic2025-01-26 21:55
Reporterale Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
Product Version1.7.1.svn 
Summary0017390: [PATCH] remove three unused variable
Descriptionmoved the three unused variable inside of the outcommented code.
TagsNo tags attached.
PatchYes

Activities

ale

2025-01-26 21:55

manager  

gradientpreview.diff (1,067 bytes)   
diff --git a/scribus/ui/gradientpreview.cpp b/scribus/ui/gradientpreview.cpp
index a4d8dd8c0..f006b3900 100644
--- a/scribus/ui/gradientpreview.cpp
+++ b/scribus/ui/gradientpreview.cpp
@@ -112,11 +112,6 @@ void GradientPreview::addStop(QPoint mousePosition)
 	double opacityL = activeStop()->opacity;
 	double shadeL = activeStop()->shade;
 
-	QColor colorR = activeStop()->color;
-	QString nameR = activeStop()->name;
-	double opacityR = activeStop()->opacity;
-	double shadeR = activeStop()->shade;
-
 	double t = percentFromPosition(mousePosition);
 	double mid = 0.5;
 
@@ -132,6 +127,11 @@ void GradientPreview::addStop(QPoint mousePosition)
 	// The following code calculate the blend color between two neighbor stops of the new one.
 	// Currently commented out because Scribus don't support calculated colors without ID (color name) yet.
 /*
+	// QColor colorR = activeStop()->color;
+	// QString nameR = activeStop()->name;
+	// double opacityR = activeStop()->opacity;
+	// double shadeR = activeStop()->shade;
+
 	VColorStop *stopL;
 	VColorStop *stopR;
 
gradientpreview.diff (1,067 bytes)   

Issue History

Date Modified Username Field Change
2025-01-26 21:55 ale New Issue
2025-01-26 21:55 ale File Added: gradientpreview.diff
2025-01-26 21:55 ale Summary remove three unused variable => [PATCH] remove three unused variable
2025-01-26 21:55 ale Patch No => Yes