summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-12 15:56:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-12 15:56:07 +0100
commitf44deda8630fbe346cef5e1e93866c334c1c0818 (patch)
tree61298e448188970a675803f71ded23924878cf54 /sc
parentc6d0dd62f7aa92be723317c8be518136eec26893 (diff)
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
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/navipi/navipi.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index f955d54143b3..b8c28fa84891 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()));
}
}