Commit 54073d46 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

fix: don't add if not created

parent 7048ffe4
......@@ -20,7 +20,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro( vtkKWMenu );
vtkCxxRevisionMacro(vtkKWMenu, "1.51");
vtkCxxRevisionMacro(vtkKWMenu, "1.52");
......@@ -107,6 +107,11 @@ void vtkKWMenu::AddGeneric(const char* addtype,
const char* extra,
const char* help)
{
if (!this->IsCreated())
{
return;
}
ostrstream str;
str << this->GetWidgetName() << " add " << addtype;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment