From 7a6239683da762264133d85d7c79aa06fcc7d725 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 3 Jan 2012 00:58:04 -0800 Subject: Fixed null-pointer ctor crashes. (bzr r10828) --- src/live_effects/effect.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/live_effects/effect.cpp') diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index fbd3c90bd..3ce2aeef3 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -566,8 +566,11 @@ Effect::newWidget() Glib::ustring * tip = param->param_getTooltip(); if (widg) { vbox->pack_start(*widg, true, true, 2); - if (tip != NULL) { + if (tip) { widg->set_tooltip_text(*tip); + } else { + widg->set_tooltip_text(""); + widg->set_has_tooltip(false); } } } -- cgit v1.2.3