diff options
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 7f8df9b9897e..87bfde7c7efb 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -1358,14 +1358,13 @@ void SvImpLBox::Resize() { Size aSize( pView->Control::GetOutputSizePixel()); long nEntryHeight = pView->GetEntryHeight(); - int nEntryCount = 0; if( aSize.Width() <= 0 || aSize.Height() <= 0 ) return; if( nEntryHeight ) { // Set the view height to an integer multiple of the entry height. - nEntryCount = (int) aSize.Height() / nEntryHeight; + int nEntryCount = (int) aSize.Height() / nEntryHeight; aSize.Height() = pView->GetEntryHeight() * nEntryCount; pView->Control::SetOutputSizePixel( aSize ); } |