summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/window/window.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 7654e2ef9af6..a836fc5ee789 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -9471,8 +9471,9 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
sal_Bool bDevOutput = mbDevOutput;
mbDevOutput = true;
- long nOldDPIX = ImplGetDPIX();
- long nOldDPIY = ImplGetDPIY();
+ const OutputDevice *pOutDev = GetOutDev();
+ long nOldDPIX = pOutDev->ImplGetDPIX();
+ long nOldDPIY = pOutDev->ImplGetDPIY();
mnDPIX = i_pTargetOutDev->ImplGetDPIX();
mnDPIY = i_pTargetOutDev->ImplGetDPIY();
sal_Bool bOutput = IsOutputEnabled();