From 5d9ae9b6cf02d3b38e2d254b1d500f23f1d6aeae Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sat, 3 Sep 2016 02:03:54 +0300 Subject: Refactoring: #if 0, == true, and const. Some refactoring for making the code clearer. (bzr r15100.1.6) --- src/gradient-drag.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gradient-drag.cpp') 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 > 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::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. -- cgit v1.2.3