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;