From 72c1b6141d590fb4479925ed8bc88b79357c2bfc Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 7 Feb 2012 00:50:36 -0500 Subject: ScAutoFormat no longer a child of ScSortedCollection. --- sc/source/ui/view/cellsh3.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sc/source/ui/view') diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx index a9950c8213ca..f90c7c6b21c7 100644 --- a/sc/source/ui/view/cellsh3.cxx +++ b/sc/source/ui/view/cellsh3.cxx @@ -817,7 +817,9 @@ void ScCellShell::Execute( SfxRequest& rReq ) { const SfxStringItem& rNameItem = (const SfxStringItem&)pReqArgs->Get( SID_AUTOFORMAT ); ScAutoFormat* pFormat = ScGlobal::GetOrCreateAutoFormat(); - sal_uInt16 nIndex = pFormat->FindIndexPerName( rNameItem.GetValue() ); + ScAutoFormat::const_iterator it = pFormat->find(rNameItem.GetValue()); + ScAutoFormat::const_iterator itBeg = pFormat->begin(); + size_t nIndex = std::distance(itBeg, it); pTabViewShell->AutoFormat( nIndex ); -- cgit