diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-12-06 12:53:50 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-12-06 12:53:50 +0000 |
| commit | 049a747614778df4ee75bd07b71a8afe1688425f (patch) | |
| tree | 85fda527d6881a2f6cb27d33300537606cc37c3c /src/gradient-chemistry.cpp | |
| parent | cppification: GSList replaced by vectors (mostly related to guides and grids) (diff) | |
| download | inkscape-049a747614778df4ee75bd07b71a8afe1688425f.tar.gz inkscape-049a747614778df4ee75bd07b71a8afe1688425f.zip | |
cppification: GSList replaced by vectors (mostly related to gradients and meshes)
(bzr r14504.1.2)
Diffstat (limited to 'src/gradient-chemistry.cpp')
| -rw-r--r-- | src/gradient-chemistry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp index 886bf484d..29522d7b1 100644 --- a/src/gradient-chemistry.cpp +++ b/src/gradient-chemistry.cpp @@ -1592,7 +1592,7 @@ void sp_gradient_reverse_selected_gradients(SPDesktop *desktop) GrDrag *drag = ev->get_drag(); // First try selected dragger - if (drag && drag->selected) { + if (drag && !drag->selected.empty()) { drag->selected_reverse_vector(); } else { // If no drag or no dragger selected, act on selection (both fill and stroke gradients) const std::vector<SPItem*> list=selection->itemList(); |
