diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-biology/treeviewx/files/treeviewx-0.5.1-70_choose_tree.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-biology/treeviewx/files/treeviewx-0.5.1-70_choose_tree.patch')
-rw-r--r-- | sci-biology/treeviewx/files/treeviewx-0.5.1-70_choose_tree.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sci-biology/treeviewx/files/treeviewx-0.5.1-70_choose_tree.patch b/sci-biology/treeviewx/files/treeviewx-0.5.1-70_choose_tree.patch new file mode 100644 index 000000000000..ed5aa43e23c3 --- /dev/null +++ b/sci-biology/treeviewx/files/treeviewx-0.5.1-70_choose_tree.patch @@ -0,0 +1,12 @@ +## 70_choose_tree.dpatch by William Alexander Grant <william.grant@ubuntu.com.au> +--- tv-0.5.orig/tview.cpp ++++ tv-0.5/tview.cpp +@@ -209,7 +209,7 @@ + wxT("SVG vector picture files (*.svg)|*.svg"), + wxSAVE|wxOVERWRITE_PROMPT); + +- if (dialog.ShowModal() == wxID_OK) ++ if ((dialog.ShowModal() == wxID_OK) && (p.GetNumTrees() != 0)) + { + wxSVGFileDC pictureDC (dialog.GetPath(), 600, 650) ; + OnDraw (&pictureDC); |