summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-01-16 11:04:47 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-01-16 11:04:47 +0000
commitcdca63bf5c514bb2e22146c6b96b76c6d126f4d4 (patch)
tree0e283c781d12599e60548032e52e99bc96baddf1 /src
parentDutch Advanced tutorial translation (new) (diff)
downloadinkscape-cdca63bf5c514bb2e22146c6b96b76c6d126f4d4.tar.gz
inkscape-cdca63bf5c514bb2e22146c6b96b76c6d126f4d4.zip
Do not try to construct an ustring from NULL in CurveDragPoint::_getTip.
Fixes crasher. (bzr r8989)
Diffstat (limited to 'src')
-rw-r--r--src/ui/tool/curve-drag-point.cpp2
1 files changed, 1 insertions, 1 deletions
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",