OSDN Git Service

Fix bug [ 798404 ] Reordering dirview columns does not preserve sorting column
authorPerry Rapp <elsapo@users.sourceforge.net>
Sun, 7 Sep 2003 21:20:10 +0000 (21:20 +0000)
committerPerry Rapp <elsapo@users.sourceforge.net>
Sun, 7 Sep 2003 21:20:10 +0000 (21:20 +0000)
Src/DirView.cpp
Src/readme.txt

index cb23825..eadcaed 100644 (file)
@@ -521,7 +521,7 @@ void CDirView::SortColumnsAppropriately()
 {
        if (m_sortColumn == -1) return;
 
-       m_ctlSortHeader.SetSortImage(m_sortColumn, m_bSortAscending);
+       m_ctlSortHeader.SetSortImage(ColLogToPhys(m_sortColumn), m_bSortAscending);
        //sort using static CompareFunc comparison function
        GetListCtrl ().SortItems (CompareFunc, reinterpret_cast<DWORD>(this));//pNMListView->iSubItem);
 }
index dbc43f5..04d3db1 100644 (file)
@@ -1,6 +1,8 @@
 2003-09-07 Perry
  PATCH: [ 802132 ] Resort dir columns after redisplay
   WinMerge: DirView.h DirView.cpp DirDoc.cpp
+ Fix bug [ 798404 ] Reordering dirview columns does not preserve sorting column
+  WinMerge: DirView.cpp
 
 2003-09-07 Laoran
  PATCH: [ 799464 ] preserve positions during Rescan (2.1)