diff options
Diffstat (limited to 'vcl/source/window/splitwin.cxx')
-rw-r--r-- | vcl/source/window/splitwin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index 108251ca1f4c..752e193e9b37 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -567,7 +567,6 @@ static void ImplCalcSet( ImplSplitSet* pSet, { nAbsItems = 0; long nSizeWinSize = 0; - long nNewSizeWinSize = 0; // first resize absolute items relative for ( i = 0; i < nItems; i++ ) @@ -584,6 +583,8 @@ static void ImplCalcSet( ImplSplitSet* pSet, // do not compensate rounding errors here if ( (nAbsItems < (sal_uInt16)(std::abs( nSizeDelta ))) && nSizeWinSize ) { + long nNewSizeWinSize = 0; + for ( i = 0; i < nItems; i++ ) { if ( !(rItems[i]->mnBits & SplitWindowItemFlags::Invisible) ) @@ -595,6 +596,7 @@ static void ImplCalcSet( ImplSplitSet* pSet, } } } + nSizeDelta -= nNewSizeWinSize-nSizeWinSize; } |