diff options
Diffstat (limited to 'svtools/source/contnr/fileview.cxx')
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index 7d6eeecd440e..d0f628798eba 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -1289,19 +1289,19 @@ IMPL_LINK( SvtFileView, HeaderSelect_Impl, HeaderBar*, pBar, void ) IMPL_LINK( SvtFileView, HeaderEndDrag_Impl, HeaderBar*, pBar, void ) { - if ( !pBar->IsItemMode() ) - { - Size aSize; - sal_uInt16 nTabs = pBar->GetItemCount(); - long nTmpSize = 0; + if ( pBar->IsItemMode() ) + return; - for ( sal_uInt16 i = 1; i <= nTabs; ++i ) - { - long nWidth = pBar->GetItemSize(i); - aSize.Width() = nWidth + nTmpSize; - nTmpSize += nWidth; - mpImpl->mpView->SetTab( i, aSize.Width(), MapUnit::MapPixel ); - } + Size aSize; + sal_uInt16 nTabs = pBar->GetItemCount(); + long nTmpSize = 0; + + for ( sal_uInt16 i = 1; i <= nTabs; ++i ) + { + long nWidth = pBar->GetItemSize(i); + aSize.Width() = nWidth + nTmpSize; + nTmpSize += nWidth; + mpImpl->mpView->SetTab( i, aSize.Width(), MapUnit::MapPixel ); } } |