2016-12-28 20:58:31 +01:00
|
|
|
From: Luke Jones <luke.nukem.jones@gmail.com>
|
|
|
|
Date: Mon, 19 Dec 2016 21:33:56 +0000
|
|
|
|
|
|
|
|
Fix conversion from wxString to wxChar when using wxWidgets >= 3.0.2
|
|
|
|
|
|
|
|
---
|
|
|
|
src/UI/Lists/ArchiveEntryList.cpp | 6 ++++--
|
|
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
Index: SLADE-3.1.1.4/src/UI/Lists/ArchiveEntryList.cpp
|
|
|
|
===================================================================
|
|
|
|
--- SLADE-3.1.1.4.orig/src/UI/Lists/ArchiveEntryList.cpp
|
|
|
|
+++ SLADE-3.1.1.4/src/UI/Lists/ArchiveEntryList.cpp
|
|
|
|
@@ -584,8 +584,10 @@ bool ArchiveEntryList::entrySort(long le
|
2016-12-19 22:41:58 +01:00
|
|
|
result = 0;
|
|
|
|
|
|
|
|
// Name sort
|
|
|
|
- else if (ael_current->col_name >= 0 && ael_current->col_name == lv_current->sortColumn())
|
|
|
|
- result = le->getName().CompareTo(re->getName(), string::ignoreCase);
|
|
|
|
+ else if (ael_current->col_name >= 0 && ael_current->col_name == lv_current->sortColumn()) {
|
2016-12-28 20:58:31 +01:00
|
|
|
+ const wxChar *reName = re->getName().c_str();
|
2016-12-19 22:41:58 +01:00
|
|
|
+ result = le->getName().CompareTo(reName, string::ignoreCase);
|
2016-12-28 20:58:31 +01:00
|
|
|
+ }
|
2016-12-19 22:41:58 +01:00
|
|
|
|
|
|
|
// Other (default) sort
|
|
|
|
else
|