From 02c2c50cef9073a56b0a582b88b176eb81221ec0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Kosi=C5=84ski?= Date: Sat, 16 Jan 2010 12:04:47 +0100 Subject: [PATCH] Do not try to construct an ustring from NULL in CurveDragPoint::_getTip. Fixes crasher. --- src/ui/tool/curve-drag-point.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.30.2