From cdca63bf5c514bb2e22146c6b96b76c6d126f4d4 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Sat, 16 Jan 2010 12:04:47 +0100 Subject: Do not try to construct an ustring from NULL in CurveDragPoint::_getTip. Fixes crasher. (bzr r8989) --- src/ui/tool/curve-drag-point.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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", -- cgit v1.2.3