diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-01-16 11:04:47 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-01-16 11:04:47 +0000 |
| commit | cdca63bf5c514bb2e22146c6b96b76c6d126f4d4 (patch) | |
| tree | 0e283c781d12599e60548032e52e99bc96baddf1 /src | |
| parent | Dutch Advanced tutorial translation (new) (diff) | |
| download | inkscape-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.cpp | 2 |
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", |
