From 82715d1d0be8f6217bac4f1e5bfe6bff589e4bbc Mon Sep 17 00:00:00 2001 From: handama <55939089+handama@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:24:28 +0800 Subject: [PATCH] fix: CViewObjects bug (#120) fix bug (or feature) that left bar return to top when selected item is cancelled (press RB) --- MissionEditor/IsoView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MissionEditor/IsoView.cpp b/MissionEditor/IsoView.cpp index 4239f77..beaac74 100644 --- a/MissionEditor/IsoView.cpp +++ b/MissionEditor/IsoView.cpp @@ -2141,7 +2141,7 @@ void CIsoView::OnRButtonUp(UINT nFlags, CPoint point) AD.reset(); CMyViewFrame& frame = *((CMyViewFrame*)owner); - frame.m_objectview->GetTreeCtrl().Select(frame.m_objectview->GetTreeCtrl().GetRootItem(), TVGN_CARET); + frame.m_objectview->GetTreeCtrl().Select(NULL, TVGN_CARET); } return; }