diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-28 16:09:46 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-28 23:59:34 +0100 |
commit | 1fac0dbeff83d12f9398a7544cfc289e2e85e10b (patch) | |
tree | 225fb3719f0e4a891893016bba214c7d75be38e8 | |
parent | use entries to create styles (diff) | |
download | core-1fac0dbeff83d12f9398a7544cfc289e2e85e10b.tar.gz core-1fac0dbeff83d12f9398a7544cfc289e2e85e10b.zip |
remove copy patsa
Change-Id: I753786b6d3e92f0ebd609cc4430887fd7e2c2f81
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index d8de4dcf6fe4..7e57dd80e253 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -581,13 +581,7 @@ uno::Any XStyleFamily::getByIndex(sal_Int32 nIndex) if(sStyleName.isEmpty()) throw lang::IndexOutOfBoundsException(); - SfxStyleSheetBase* pBase = m_pBasePool->Find(sStyleName, m_rEntry.m_eFamily); - if(!pBase) - throw uno::RuntimeException(); - uno::Reference<style::XStyle> xStyle = _FindStyle(sStyleName); - if(!xStyle.is()) - xStyle = m_rEntry.m_fCreateStyle(m_pBasePool, m_pDocShell, m_rEntry.m_eFamily == SFX_STYLE_FAMILY_FRAME ? pBase->GetName() : sStyleName); - return uno::makeAny(xStyle); + return getByName(sStyleName); } uno::Any XStyleFamily::getByName(const OUString& rName) |