summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-11-28 16:09:46 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-11-29 10:38:33 +0100
commit6521acdabcdceba0b53a6453ec513c3894a8e77a (patch)
treec58ee6465b4f6435dcc85bdf6173f92ea17a6d93 /sw/source/core/unocore
parente5e3730265431541c1b0d53e1a5c409204c425f4 (diff)
remove copy patsa
Change-Id: I753786b6d3e92f0ebd609cc4430887fd7e2c2f81
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r--sw/source/core/unocore/unostyle.cxx8
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)