diff options
Diffstat (limited to 'vcl/source/window/arrange.cxx')
-rw-r--r-- | vcl/source/window/arrange.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/arrange.cxx b/vcl/source/window/arrange.cxx index ae578f8e5337..ac92ae56f8d0 100644 --- a/vcl/source/window/arrange.cxx +++ b/vcl/source/window/arrange.cxx @@ -106,7 +106,7 @@ bool WindowArranger::Element::isVisible() const sal_Int32 WindowArranger::Element::getExpandPriority() const { sal_Int32 nPrio = m_nExpandPriority; - if( m_pChild ) + if( m_pChild && m_nExpandPriority >= 0 ) { size_t nElements = m_pChild->countElements(); for( size_t i = 0; i < nElements; i++ ) |