diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-25 16:11:06 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-26 07:11:15 +0200 |
commit | 0879fff079965065935c88a1ba48385548176a13 (patch) | |
tree | 32eeff87eaa93cf77e1147c114b5e0a0470f74dd /vcl/source/window/window.cxx | |
parent | 7511fd100d0b4e4b10f3e0a986a4cb1db7a1637c (diff) |
tdf#160837 vcl: Use existing SalFrame::GetWidth
Call `SalFrame::GetWidth` instead of directly accessing
`SalFrame::maGeometry` and calling its `width()` method
to simplify and abstract a bit from the implementation
details in the callers.
Change-Id: I06f960c4984e57a728c301e10fc62a28a8af6199
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173954
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r-- | vcl/source/window/window.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 301b6c0cd51d..10db9fd7a3d2 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -2727,7 +2727,7 @@ void Window::setPosSizePixel( tools::Long nX, tools::Long nY, } if( !comphelper::LibreOfficeKit::isActive() && !(nFlags & PosSizeFlags::X) && bHasValidSize && - pWindow->mpWindowImpl->mpFrame->maGeometry.width() ) + pWindow->mpWindowImpl->mpFrame->GetWidth()) { // RTL: make sure the old right aligned position is not changed // system windows will always grow to the right @@ -3606,7 +3606,7 @@ bool Window::IsScrollable() const void Window::ImplMirrorFramePos( Point &pt ) const { - pt.setX( mpWindowImpl->mpFrame->maGeometry.width()-1-pt.X() ); + pt.setX(mpWindowImpl->mpFrame->GetWidth() - 1 - pt.X()); } // frame based modal counter (dialogs are not modal to the whole application anymore) |