[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sat Mar 6 10:47:30 UTC 2021


 sc/source/ui/navipi/navipi.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 98e90b72778014921e69680915716ea44c97fa53
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 5 17:09:07 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Mar 6 11:46:43 2021 +0100

    replace GetOptimalSize with Container::get_preferred_size
    
    Change-Id: Ie014a3e48c1d05a91afd0db969e0af21fa84eb71
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112027
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 99594e9113b5..170c14308c9f 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -412,7 +412,7 @@ ScNavigatorDlg::ScNavigatorDlg(SfxBindings* pB, vcl::Window* pParent)
         eNavMode = NAV_LMODE_AREAS;
     SetListMode(eNavMode);
 
-    aExpandedSize = GetOptimalSize();
+    aExpandedSize = m_xContainer->get_preferred_size();
 
     m_pInitialFocusWidget = m_xEdCol.get();
 }
@@ -790,7 +790,7 @@ void ScNavigatorDlg::SetListMode(NavListMode eMode)
 
         if (pNav)
         {
-            Size aOptimalSize(GetOptimalSize());
+            Size aOptimalSize(m_xContainer->get_preferred_size());
             Size aNewSize(pNav->GetOutputSizePixel());
             aNewSize.setHeight( eMode == NAV_LMODE_NONE ? aOptimalSize.Height() : aExpandedSize.Height() );
             pNav->SetMinOutputSizePixel(aOptimalSize);


More information about the Libreoffice-commits mailing list