[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 5 20:58:51 UTC 2021
sw/source/uibase/utlui/navipi.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit d130bda377d00654267e8bfb75e61f34e8991150
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 5 17:02:55 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 5 21:58:00 2021 +0100
replace GetOptimalSize with Container::get_preferred_size
Change-Id: Ib4760da9ba3d0e25de3a5a0d363360720b81d197
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112026
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index 53fdad3098e3..3520a9a5de53 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -435,7 +435,7 @@ void SwNavigationPI::ZoomOut()
m_xDocListBox->show();
}
- Size aOptimalSize(GetOptimalSize());
+ Size aOptimalSize(m_xContainer->get_preferred_size());
Size aNewSize(pNav->GetOutputSizePixel());
aNewSize.setHeight( m_aExpandedSize.Height() );
pNav->SetMinOutputSizePixel(aOptimalSize);
@@ -463,7 +463,7 @@ void SwNavigationPI::ZoomIn()
m_xDocListBox->hide();
m_bIsZoomedIn = true;
- Size aOptimalSize(GetOptimalSize());
+ Size aOptimalSize(m_xContainer->get_preferred_size());
Size aNewSize(pNav->GetOutputSizePixel());
aNewSize.setHeight( aOptimalSize.Height() );
pNav->SetMinOutputSizePixel(aOptimalSize);
@@ -645,7 +645,7 @@ SwNavigationPI::SwNavigationPI(vcl::Window* pParent,
m_xGlobalTree->set_accessible_name(SwResId(STR_ACCESS_TL_GLOBAL));
m_xDocListBox->set_accessible_name(m_aStatusArr[3]);
- m_aExpandedSize = GetOptimalSize();
+ m_aExpandedSize = m_xContainer->get_preferred_size();
m_pInitialFocusWidget = m_xContent1ToolBox.get();
}
More information about the Libreoffice-commits
mailing list