summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2016-09-02 23:03:54 +0000
committerShlomi Fish <shlomif@shlomifish.org>2016-09-02 23:03:54 +0000
commit5d9ae9b6cf02d3b38e2d254b1d500f23f1d6aeae (patch)
treeeaaffd869c7079e9e832a4644b3db590e44fffc2 /src/gradient-drag.cpp
parentRemove extraneous checks for truth/false. (diff)
downloadinkscape-5d9ae9b6cf02d3b38e2d254b1d500f23f1d6aeae.tar.gz
inkscape-5d9ae9b6cf02d3b38e2d254b1d500f23f1d6aeae.zip
Refactoring: #if 0, == true, and const.
Some refactoring for making the code clearer. (bzr r15100.1.6)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 5b91bdc9f..d50a67490 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1327,8 +1327,10 @@ GrDragger::updateHandles ( Geom::Point pc_old, MeshNodeOperation op )
// We need a list of selected corners per mesh if scaling.
std::map<SPGradient*, std::vector<guint> > selected_corners;
- bool scale = false;
- if( scale == true ) {
+ // scaling was disabled so #if 0'ing out for now.
+#if 0
+ const bool scale = false;
+ if( scale ) {
for( std::set<GrDragger *>::const_iterator it = drag->selected.begin(); it != drag->selected.end(); ++it ) {
GrDragger *dragger = *it;
@@ -1346,6 +1348,7 @@ GrDragger::updateHandles ( Geom::Point pc_old, MeshNodeOperation op )
}
}
}
+#endif
// Now we do the handle moves.