diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/treelist/svimpbox.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx index 63b4d928bfd5..b5efa69aa19d 100644 --- a/vcl/source/treelist/svimpbox.cxx +++ b/vcl/source/treelist/svimpbox.cxx @@ -2392,9 +2392,12 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt) case KEY_SUBTRACT: if (m_pView->IsExpanded(m_pCursor)) - m_pView->Collapse(m_pCursor); - if (bMod1) - CollapseTo(m_pTree->GetRootLevelParent(m_pCursor)); + { + if (bMod1) + CollapseTo(m_pCursor); + else + m_pView->Collapse(m_pCursor); + } break; case KEY_MULTIPLY: |