View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017390 | Scribus | General | public | 2025-01-26 21:55 | 2025-01-26 21:55 |
Reporter | ale | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | new | Resolution | open | ||
Product Version | 1.7.1.svn | ||||
Summary | 0017390: [PATCH] remove three unused variable | ||||
Description | moved the three unused variable inside of the outcommented code. | ||||
Tags | No tags attached. | ||||
Attached Files | 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; | ||||
Patch | Yes | ||||