Kaydet (Commit) 3cf7144e authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck reduce scope in vcl/.. lstbox.cxx

üst 82e6e144
......@@ -656,7 +656,6 @@ void ListBox::Resize()
{
// initialize the dropdown button size with the standard scrollbar width
long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
long nTop = 0;
long nBottom = aOutSz.Height();
// note: in case of no border, pBorder will actually be this
......@@ -671,6 +670,7 @@ void ListBox::Resize()
if ( GetNativeControlRegion( CTRL_LISTBOX, PART_BUTTON_DOWN,
aArea, 0, aControlValue, rtl::OUString(), aBound, aContent) )
{
long nTop = 0;
// convert back from border space to local coordinates
aPoint = pBorder->ScreenToOutputPixel( OutputToScreenPixel( aPoint ) );
aContent.Move( -aPoint.X(), -aPoint.Y() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment