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

Stephan Bergmann sbergman at redhat.com
Sun Mar 12 14:57:29 UTC 2017


 sc/source/ui/navipi/navipi.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f44deda8630fbe346cef5e1e93866c334c1c0818
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun Mar 12 15:56:07 2017 +0100

    nZoomId is already a ToolBox item ID, not an item position
    
    ...so doesn't need to be passed through GetItemId.  Apparent thinko in
    e3bd10f8d5c7750dd0a700f738f4713519cde118 "adjust the hide of the zoom so its
    dynamic on docking/undocking navigators".
    
    Change-Id: I26c300522f048b8fd661856bfe2789ee7718ad15

diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index f955d54..b8c28fa 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -550,7 +550,7 @@ void ScNavigatorDlg::StateChanged(StateChangedType nStateChange)
         // When the navigator is displayed in the sidebar, or is otherwise
         // docked, it has the whole deck to fill. Therefore hide the button that
         // hides all controls below the top two rows of buttons.
-        aTbxCmd->ShowItem(aTbxCmd->GetItemId(nZoomId), SfxChildWindowContext::GetFloatingWindow(GetParent()));
+        aTbxCmd->ShowItem(nZoomId, SfxChildWindowContext::GetFloatingWindow(GetParent()));
     }
 }
 


More information about the Libreoffice-commits mailing list