summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-09-07 08:06:55 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-09-07 08:06:55 +0000
commit0930fd55d812b634da69eba0fe92b4094c554fa0 (patch)
treecd256b99a5eb15014727af17923099ce9d4d463a /src/gradient-drag.cpp
parentFix for 580160 : Deleting a gradient stop using Shape tools deletes the object (diff)
downloadinkscape-0930fd55d812b634da69eba0fe92b4094c554fa0.tar.gz
inkscape-0930fd55d812b634da69eba0fe92b4094c554fa0.zip
Fix for 1046868 : Gradient tool (trunk): stop selector cannot access stroke gradient stops of objects with two gradients
(bzr r11656)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index fd5ad159f..c72e47350 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1759,7 +1759,7 @@ void GrDrag::selectByCoords(std::vector<Geom::Point> coords)
/**
* Select draggers by stop
*/
-void GrDrag::selectByStop(SPStop *stop )
+void GrDrag::selectByStop(SPStop *stop, bool add_to_selection, bool override )
{
for (GList *i = this->draggers; i != NULL; i = i->next) {
@@ -1768,11 +1768,11 @@ void GrDrag::selectByStop(SPStop *stop )
GrDraggable *d = (GrDraggable *) j->data;
SPGradient *gradient = getGradient(d->item, d->fill_or_stroke);
- SPGradient *vector = sp_gradient_get_forked_vector_if_necessary(gradient, false);
+ SPGradient *vector = gradient->getVector(false);
SPStop *stop_i = sp_get_stop_i(vector, d->point_i);
if (stop_i == stop) {
- setSelected(dragger, true, true);
+ setSelected(dragger, add_to_selection, override);
}
}
}