diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2012-01-03 08:58:04 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2012-01-03 08:58:04 +0000 |
| commit | 7a6239683da762264133d85d7c79aa06fcc7d725 (patch) | |
| tree | 71deb81dfdf5699c171ee2d00f819ddd4700b1f5 /src/extension/param/notebook.cpp | |
| parent | More deprecated GtkTooltips (diff) | |
| download | inkscape-7a6239683da762264133d85d7c79aa06fcc7d725.tar.gz inkscape-7a6239683da762264133d85d7c79aa06fcc7d725.zip | |
Fixed null-pointer ctor crashes.
(bzr r10828)
Diffstat (limited to 'src/extension/param/notebook.cpp')
| -rw-r--r-- | src/extension/param/notebook.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/extension/param/notebook.cpp b/src/extension/param/notebook.cpp index d65ec3927..99eec7e4b 100644 --- a/src/extension/param/notebook.cpp +++ b/src/extension/param/notebook.cpp @@ -209,8 +209,11 @@ Gtk::Widget * ParamNotebookPage::get_widget(SPDocument * doc, Inkscape::XML::Nod gchar const * tip = param->get_tooltip(); // printf("Tip: '%s'\n", tip); vbox->pack_start(*widg, false, false, 2); - if (tip != NULL) { - widg->set_tooltip_text(Glib::ustring(tip)); + if (tip) { + widg->set_tooltip_text(tip); + } else { + widg->set_tooltip_text(""); + widg->set_has_tooltip(false); } } |
