From: Krzysztof KosiƄski Date: Sat, 16 Jan 2010 11:04:47 +0000 (+0100) Subject: Do not try to construct an ustring from NULL in CurveDragPoint::_getTip. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=02c2c50cef9073a56b0a582b88b176eb81221ec0;p=inkscape.git Do not try to construct an ustring from NULL in CurveDragPoint::_getTip. Fixes crasher. --- diff --git a/src/ui/tool/curve-drag-point.cpp b/src/ui/tool/curve-drag-point.cpp index dbd19c754..0d1183ebf 100644 --- a/src/ui/tool/curve-drag-point.cpp +++ b/src/ui/tool/curve-drag-point.cpp @@ -154,7 +154,7 @@ bool CurveDragPoint::_doubleclickedHandler(GdkEventButton *event) Glib::ustring CurveDragPoint::_getTip(unsigned state) { - if (!first || !first.next()) return NULL; + if (!first || !first.next()) return ""; bool linear = first->front()->isDegenerate() && first.next()->back()->isDegenerate(); if (state_held_shift(state)) { return C_("Path segment statusbar tip",