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:
Matthias Melcher 2010-01-11 19:43:27 +00:00
parent 12fecf6c4d
commit 2e87701192

View File

@ -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());
}