diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2018-05-04 16:45:37 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2018-05-04 16:45:37 +0000 |
| commit | 6031728e438feb9457596baae886c803883535e4 (patch) | |
| tree | 312bd8e46bc0cb2581287a72964d21a1eba5133b /src/gradient-drag.cpp | |
| parent | Rename "Glyphs" dialog to "Unicode Characters" dialog to better reflect what ... (diff) | |
| download | inkscape-6031728e438feb9457596baae886c803883535e4.tar.gz inkscape-6031728e438feb9457596baae886c803883535e4.zip | |
Revert "Fix include order with clang-tidy check llvm-include-order"
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
Diffstat (limited to 'src/gradient-drag.cpp')
| -rw-r--r-- | src/gradient-drag.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp index f1ee7037a..a67d18e9f 100644 --- a/src/gradient-drag.cpp +++ b/src/gradient-drag.cpp @@ -2117,10 +2117,10 @@ void GrDrag::addCurve(SPItem *item, Geom::Point p0, Geom::Point p1, Geom::Point GrDragger* dragger1 = getDraggerFor(item, POINT_MG_CORNER, corner1, fill_or_stroke); GrDragger* dragger2 = getDraggerFor(item, POINT_MG_HANDLE, handle0, fill_or_stroke); GrDragger* dragger3 = getDraggerFor(item, POINT_MG_HANDLE, handle1, fill_or_stroke); - if ((dragger0->knot && (dragger0->knot->flags & SP_KNOT_MOUSEOVER)) || - (dragger1->knot && (dragger1->knot->flags & SP_KNOT_MOUSEOVER)) || - (dragger2->knot && (dragger2->knot->flags & SP_KNOT_MOUSEOVER)) || - (dragger3->knot && (dragger3->knot->flags & SP_KNOT_MOUSEOVER)) ) { + if (dragger0->knot && (dragger0->knot->flags & SP_KNOT_MOUSEOVER) || + dragger1->knot && (dragger1->knot->flags & SP_KNOT_MOUSEOVER) || + dragger2->knot && (dragger2->knot->flags & SP_KNOT_MOUSEOVER) || + dragger3->knot && (dragger3->knot->flags & SP_KNOT_MOUSEOVER) ) { highlight = true; } @@ -2215,9 +2215,9 @@ void GrDrag::addDraggersMesh(SPMeshGradient *mg, SPItem *item, Inkscape::PaintTa // Show/hide mesh on fill/stroke. This doesn't work at the moment... and prevents node color updating. Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - bool show_handles = (prefs->getBool("/tools/mesh/show_handles", true)); - bool edit_fill = (prefs->getBool("/tools/mesh/edit_fill", true)); - bool edit_stroke = (prefs->getBool("/tools/mesh/edit_stroke", true)); + bool show_handles = abs(prefs->getBool("/tools/mesh/show_handles", true)); + bool edit_fill = abs(prefs->getBool("/tools/mesh/edit_fill", true)); + bool edit_stroke = abs(prefs->getBool("/tools/mesh/edit_stroke", true)); // Make sure we have at least one patch defined. if( mg->array.patch_rows() == 0 || mg->array.patch_columns() == 0 ) { @@ -2301,7 +2301,7 @@ void GrDrag::refreshDraggersMesh(SPMeshGradient *mg, SPItem *item, Inkscape::Pai std::vector< std::vector< SPMeshNode* > > nodes = mg->array.nodes; Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - bool show_handles = (prefs->getBool("/tools/mesh/show_handles", true)); + bool show_handles = abs(prefs->getBool("/tools/mesh/show_handles", true)); // Make sure we have at least one patch defined. if( mg->array.patch_rows() == 0 || mg->array.patch_columns() == 0 ) { @@ -2539,7 +2539,7 @@ void GrDrag::updateLines() } else if ( SP_IS_MESHGRADIENT(server) ) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - bool edit_fill = (prefs->getBool("/tools/mesh/edit_fill", true)); + bool edit_fill = abs(prefs->getBool("/tools/mesh/edit_fill", true)); SPMeshGradient *mg = SP_MESHGRADIENT(server); @@ -2621,7 +2621,7 @@ void GrDrag::updateLines() } else if ( SP_IS_MESHGRADIENT(server) ) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - bool edit_stroke = (prefs->getBool("/tools/mesh/edit_stroke", true)); + bool edit_stroke = abs(prefs->getBool("/tools/mesh/edit_stroke", true)); if (edit_stroke) { |
