diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index b44242d3a4cb..9c5943667f29 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -629,12 +629,12 @@ void doc_paintTile (LibreOfficeKitDocument* pThis, { // Draw a small red rectangle in the top left corner so that it's easy to see where a new tile begins. Rectangle aRect(0, 0, 5, 5); - aRect = aDevice.PixelToLogic(aRect); - aDevice.Push(PushFlags::FILLCOLOR | PushFlags::LINECOLOR); - aDevice.SetFillColor(COL_LIGHTRED); - aDevice.SetLineColor(); - aDevice.DrawRect(aRect); - aDevice.Pop(); + aRect = pDevice->PixelToLogic(aRect); + pDevice->Push(PushFlags::FILLCOLOR | PushFlags::LINECOLOR); + pDevice->SetFillColor(COL_LIGHTRED); + pDevice->SetLineColor(); + pDevice->DrawRect(aRect); + pDevice->Pop(); } #else |