diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-07 00:50:36 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-07 00:50:36 -0500 |
commit | 72c1b6141d590fb4479925ed8bc88b79357c2bfc (patch) | |
tree | 8d3606a61b33e2e6736dfc06010c553fc8568d91 /sc/source/ui/view | |
parent | 9abbf7c181467e665e4b8da3561a31086b65ed08 (diff) |
ScAutoFormat no longer a child of ScSortedCollection.
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/cellsh3.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 ); |