summaryrefslogtreecommitdiff
path: root/vcl/win/gdi/gdiimpl.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-09-25 16:30:56 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-09-26 07:11:35 +0200
commitc3e89c03d340db7b80a36ada7cbd2ea9009ac075 (patch)
tree03a13dafdf83677f912adb920dabacc2f440e985 /vcl/win/gdi/gdiimpl.cxx
parent22393b8f71d3a46a60ff0be5c938a5da6e5fabb0 (diff)
tdf#160837 win: Replace some direct access to SalFrame::maGeometry
Replace some direct access to the (currently still, but soon no longer public) SalFrame::maGeometry member in Windows-specific code by using the public getter SalFrame::GetUnmirroredGeometry, or more specific getters for the height and width (SalFrame::GetWidth, SalFrame::GetHeight). Change-Id: I49babdc0f40fe41b44f968ce0a7d3c219a3f93d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173957 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'vcl/win/gdi/gdiimpl.cxx')
-rw-r--r--vcl/win/gdi/gdiimpl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx
index 1a186fc4ae8c..db936ae39bef 100644
--- a/vcl/win/gdi/gdiimpl.cxx
+++ b/vcl/win/gdi/gdiimpl.cxx
@@ -957,11 +957,11 @@ tools::Long WinSalGraphicsImpl::GetGraphicsWidth() const
WinSalFrame* pFrame = GetWindowPtr( mrParent.gethWnd() );
if( pFrame )
{
- if (pFrame->maGeometry.width())
- return pFrame->maGeometry.width();
+ if (pFrame->GetWidth())
+ return pFrame->GetWidth();
else
{
- // TODO: perhaps not needed, maGeometry should always be up-to-date
+ // TODO: perhaps not needed, width should always be up-to-date
RECT aRect;
GetClientRect( mrParent.gethWnd(), &aRect );
return aRect.right;