summaryrefslogtreecommitdiff
path: root/biology/treeviewx/files/patch-fix-load-trees
diff options
context:
space:
mode:
Diffstat (limited to 'biology/treeviewx/files/patch-fix-load-trees')
-rw-r--r--biology/treeviewx/files/patch-fix-load-trees40
1 files changed, 0 insertions, 40 deletions
diff --git a/biology/treeviewx/files/patch-fix-load-trees b/biology/treeviewx/files/patch-fix-load-trees
deleted file mode 100644
index 4f9392f44331..000000000000
--- a/biology/treeviewx/files/patch-fix-load-trees
+++ /dev/null
@@ -1,40 +0,0 @@
-Bug: http://code.google.com/p/treeviewx/issues/detail?id=1
-Description: fix crash on loading tree file.
-Author: Tim Booth
---- tview.cpp
-+++ tview.cpp
-@@ -278,7 +278,7 @@
- char buf[256];
- strcpy (buf, p->GetLabel().c_str());
- wchar_t wbuf[256];
-- mbstowcs (wbuf, buf, size_t(wbuf));
-+ mbstowcs (wbuf, buf, 256);
- s << wbuf;
- #else
- s << p->GetLabel().c_str();
-@@ -563,7 +563,7 @@
- char buf[256];
- strcpy (buf, t.GetName().c_str());
- wchar_t wbuf[256];
-- mbstowcs (wbuf, buf, size_t(wbuf));
-+ mbstowcs (wbuf, buf, 256);
- txt << wbuf;
- #else
- txt << t.GetName().c_str();
-@@ -712,7 +712,7 @@
- char buf[256];
- strcpy (buf, p.GetIthTreeName(i).c_str());
- wchar_t wbuf[256];
-- mbstowcs (wbuf, buf, size_t(wbuf));
-+ mbstowcs (wbuf, buf, 256);
-
- std::wstring tname = wbuf;
-
-@@ -1046,6 +1046,7 @@
- void MyCanvas::OnSize(wxSizeEvent& event)
- {
- Resize ();
-+ Refresh();
- event.Skip();
- }
-