File: 70_choose_tree.patch

package info (click to toggle)
treeviewx 0.5.1%2Bgit20100823.7e4d0e9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,664 kB
  • sloc: cpp: 14,362; xml: 82; makefile: 66
file content (12 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
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);