Fl_Preferences::copyTo() would fail if there is no tree root
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
12fecf6c4d
commit
2e87701192
@ -339,6 +339,8 @@ Fl_Preferences::~Fl_Preferences()
|
||||
*/
|
||||
char Fl_Preferences::copyTo(Fl_Tree *tree)
|
||||
{
|
||||
if (!tree->root())
|
||||
tree->add(name());
|
||||
return node->copyTo(tree, tree->root());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user