diff options
Diffstat (limited to 'svtools/source/brwbox/brwbox2.cxx')
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 92cd50a2cc92..e9e725149020 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -631,14 +631,13 @@ void BrowseBox::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle } } - -void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawFlags nFlags ) +void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, DrawFlags nFlags ) { // we need pixel coordinates - Size aRealSize = pDev->LogicToPixel(rSize); + Size aRealSize = GetSizePixel(); Point aRealPos = pDev->LogicToPixel(rPos); - if ((rSize.Width() < 3) || (rSize.Height() < 3)) + if ((aRealSize.Width() < 3) || (aRealSize.Height() < 3)) // we want to have two pixels frame ... return; @@ -712,9 +711,11 @@ void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, // the header's draw expects logic coordinates, again aHeaderPos = pDev->PixelToLogic(aHeaderPos); - aHeaderSize = pDev->PixelToLogic(aHeaderSize); - pBar->Draw(pDev, aHeaderPos, aHeaderSize, nFlags); + Size aOrigSize(pBar->GetSizePixel()); + pBar->SetSizePixel(aHeaderSize); + pBar->Draw(pDev, aHeaderPos, nFlags); + pBar->SetSizePixel(aOrigSize); // draw the "upper left cell" (the intersection between the header bar and the handle column) if (pFirstCol && (pFirstCol->GetId() == 0) && (pFirstCol->Width() > 4)) @@ -771,7 +772,6 @@ void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, pDev->Pop(); } - void BrowseBox::ImplPaintData(OutputDevice& _rOut, const tools::Rectangle& _rRect, bool _bForeignDevice) { Point aOverallAreaPos = _bForeignDevice ? _rRect.TopLeft() : Point(0,0); |