Skip to content

Commit 14915a4

Browse files
committed
Fix child CollectionBoxes not getting selected when clicked from the list
1 parent 52b36f1 commit 14915a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/GUIEditorApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ namespace RTEGUI {
192192

193193
if (item) {
194194
// Try to find the box of that name, and select it
195-
GUIControl *boxControl = m_ControlManager->GetControl(item->m_Name);
195+
GUIControl *boxControl = m_ControlManager->GetControl(item->m_Name.substr(item->m_Name.find_first_not_of('\t'), std::string::npos));
196196
if (boxControl) {
197197
m_SelectionInfo.GrabbedControl = false;
198198
m_SelectionInfo.GrabbedHandle = false;

0 commit comments

Comments
 (0)