summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-10-05 12:19:04 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-10-05 12:19:04 +0000
commit67d61b662f9c7f8cd39ea78335efb709bade4549 (patch)
tree1df7203973194293cb2e338fed03094b746fd502 /src/gradient-drag.cpp
parentMatch default for star tool and star toolbar (diff)
downloadinkscape-67d61b662f9c7f8cd39ea78335efb709bade4549.tar.gz
inkscape-67d61b662f9c7f8cd39ea78335efb709bade4549.zip
Fix various minor code problems
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 47b032c2a..71ae65f50 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1444,6 +1444,8 @@ GrDragger::moveMeshHandles ( Geom::Point pc_old, MeshNodeOperation op )
*/
void GrDragger::updateTip()
{
+ g_return_if_fail(this->knot != nullptr);
+
if (this->knot && this->knot->tip) {
g_free (this->knot->tip);
this->knot->tip = nullptr;