summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-05-27 10:35:12 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-05-27 10:35:12 +0000
commit05a6cdb8047e9ffedeb27ebc025ea7b700402e29 (patch)
treec3ad8fe529e8b9f4bbe444fc9db6b032f6c2bd87 /src/gradient-drag.cpp
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
downloadinkscape-05a6cdb8047e9ffedeb27ebc025ea7b700402e29.tar.gz
inkscape-05a6cdb8047e9ffedeb27ebc025ea7b700402e29.zip
Hackfest2019: Rm tautological tests
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 9f9a29765..681268991 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1546,7 +1546,7 @@ void GrDragger::moveThisToDraggable(SPItem *item, GrPointType point_type, gint p
for (std::vector<GrDraggable *>::const_iterator j = draggables.begin(); j != draggables.end(); ++j ) {
GrDraggable *da = *j;
if ( (da->item == item) &&
- (point_type == -1 || da->point_type == point_type) &&
+ (da->point_type == point_type) &&
(point_i == -1 || da->point_i == point_i) &&
(da->fill_or_stroke == fill_or_stroke) ) {
// Don't move initial draggable
@@ -1743,7 +1743,7 @@ GrDragger *GrDrag::getDraggerFor(SPItem *item, GrPointType point_type, gint poin
for (std::vector<GrDraggable *>::const_iterator j = dragger->draggables.begin(); j != dragger->draggables.end(); ++j ) {
GrDraggable *da2 = *j;
if ( (da2->item == item) &&
- (point_type == -1 || da2->point_type == point_type) && // -1 means this does not matter
+ (da2->point_type == point_type) &&
(point_i == -1 || da2->point_i == point_i) && // -1 means this does not matter
(da2->fill_or_stroke == fill_or_stroke)) {
return (dragger);