Code

Do not try to construct an ustring from NULL in CurveDragPoint::_getTip.
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Sat, 16 Jan 2010 11:04:47 +0000 (12:04 +0100)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Sat, 16 Jan 2010 11:04:47 +0000 (12:04 +0100)
Fixes crasher.

src/ui/tool/curve-drag-point.cpp

index dbd19c754f63dbf90de34c5da70cff2bfb47a40e..0d1183ebf92a8bde407d2bafe705097555b7cfdf 100644 (file)
@@ -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",