diff options
| author | Shlomi Fish <shlomif@shlomifish.org> | 2016-09-02 23:03:54 +0000 |
|---|---|---|
| committer | Shlomi Fish <shlomif@shlomifish.org> | 2016-09-02 23:03:54 +0000 |
| commit | 5d9ae9b6cf02d3b38e2d254b1d500f23f1d6aeae (patch) | |
| tree | eaaffd869c7079e9e832a4644b3db590e44fffc2 /src/gradient-drag.cpp | |
| parent | Remove extraneous checks for truth/false. (diff) | |
| download | inkscape-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.cpp | 7 |
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. |
