diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-27 08:52:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-27 10:51:54 +0100 |
commit | a714dfbfb266839633156ef02669ee2c919d1615 (patch) | |
tree | b18fa6c1416be6c3338016382e8202936289e912 | |
parent | ba0100be03c6bbc5ae10201bae340b3f7b7c4500 (diff) |
use WindowStateMask::Size
Change-Id: I6200e9fc20f8eb71bcf509fa739f4234c059f6da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129024
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sfx2/source/appl/childwin.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/basedlgs.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index ae8e7c35ad71..2eb6bdc0652d 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -313,7 +313,7 @@ SfxChildWinInfo SfxChildWindow::GetInfo() const aInfo.aSize = pDialog->get_size(); WindowStateMask nMask = WindowStateMask::Pos | WindowStateMask::State; if (pDialog->get_resizable()) - nMask |= WindowStateMask::Width | WindowStateMask::Height; + nMask |= WindowStateMask::Size; aInfo.aWinState = pDialog->get_window_state(nMask); } else if (pWindow) @@ -324,7 +324,7 @@ SfxChildWinInfo SfxChildWindow::GetInfo() const { WindowStateMask nMask = WindowStateMask::Pos | WindowStateMask::State; if ( pWindow->GetStyle() & WB_SIZEABLE ) - nMask |= WindowStateMask::Width | WindowStateMask::Height; + nMask |= WindowStateMask::Size; aInfo.aWinState = static_cast<SystemWindow*>(pWindow.get())->GetWindowState( nMask ); } else if (DockingWindow* pDockingWindow = dynamic_cast<DockingWindow*>(pWindow.get())) diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index 2fefb02ff125..362d2d3c6961 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -175,7 +175,7 @@ void SfxModelessDialogController::ChildWinDispose() { WindowStateMask nMask = WindowStateMask::Pos | WindowStateMask::State; if (m_xDialog->get_resizable()) - nMask |= WindowStateMask::Width | WindowStateMask::Height; + nMask |= WindowStateMask::Size; m_xImpl->aWinState = m_xDialog->get_window_state(nMask); GetBindings().GetWorkWindow_Impl()->ConfigChild_Impl( SfxChildIdentifier::DOCKINGWINDOW, SfxDockingConfig::ALIGNDOCKINGWINDOW, m_xImpl->pMgr->GetType() ); } |