summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/bastype2.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx
index b143924fe149..ee2caf7ad48a 100644
--- a/basctl/source/basicide/bastype2.cxx
+++ b/basctl/source/basicide/bastype2.cxx
@@ -1574,7 +1574,10 @@ IMPL_LINK_NOARG(SbTreeListBox, OpenCurrentHdl, weld::TreeView&, void)
break;
default:
- m_xControl->expand_row(*m_xIter);
+ if (!m_xControl->get_row_expanded(*m_xIter))
+ m_xControl->expand_row(*m_xIter);
+ else
+ m_xControl->collapse_row(*m_xIter);
break;
}
}