Kaydet (Commit) 6521acda authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

remove copy patsa

Change-Id: I753786b6d3e92f0ebd609cc4430887fd7e2c2f81
üst e5e37302
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment