Fix strange content selection breakage (#636).
authorCarl Hetherington <cth@carlh.net>
Tue, 14 Jul 2015 00:01:31 +0000 (01:01 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 14 Jul 2015 00:01:31 +0000 (01:01 +0100)
ChangeLog
src/wx/content_panel.cc

index 14204b5889ef3ca10f3c4addfaf9014e08048b54..5ad26c4d4a60f2304a565944a731a11fbc875d69 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-07-14  Carl Hetherington  <cth@carlh.net>
 
+       * Fix occasional strange failure to allow content
+       selection (#636).
+
        * Fix failure to encode 3D from separate content
        in some cases (from 1.x) (#634).
 
index b3880da5744fb854d1a56dd3705e6aa192610032..32ca3e4945c592ae6871879dd1b0177cb449b289 100644 (file)
@@ -429,7 +429,7 @@ ContentPanel::set_selection (weak_ptr<Content> wc)
                if (content[i] == wc.lock ()) {
                        _content->SetItemState (i, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
                } else {
-                       _content->SetItemState (i, 0, wxLIST_STATE_SELECTED | wxLIST_STATE_FOCUSED);
+                       _content->SetItemState (i, 0, wxLIST_STATE_SELECTED);
                }
        }
 }