treeviewx-0.5.1-70_choose_tree.patch 439 B

12345678910111213
  1. ## 70_choose_tree.dpatch by William Alexander Grant <william.grant@ubuntu.com.au>
  2. --- tv-0.5.orig/tview.cpp
  3. +++ tv-0.5/tview.cpp
  4. @@ -209,7 +209,7 @@
  5. wxT("SVG vector picture files (*.svg)|*.svg"),
  6. wxSAVE|wxOVERWRITE_PROMPT);
  7. - if (dialog.ShowModal() == wxID_OK)
  8. + if ((dialog.ShowModal() == wxID_OK) && (p.GetNumTrees() != 0))
  9. {
  10. wxSVGFileDC pictureDC (dialog.GetPath(), 600, 650) ;
  11. OnDraw (&pictureDC);