[Libreoffice-commits] .: sw/source
Lubos Lunak
llunak at kemper.freedesktop.org
Tue Nov 8 06:35:50 PST 2011
sw/source/filter/ww8/docxattributeoutput.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 26e1bc1dd13bf33d60b9f70262627094498fca09
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Mon Nov 7 19:49:05 2011 +0100
simplify code
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index abe68e8..0181c61 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -2313,10 +2313,7 @@ void DocxAttributeOutput::WritePostponedMath()
if( m_postponedMath == NULL )
return;
uno::Reference < embed::XEmbeddedObject > xObj(const_cast<SwOLENode*>(m_postponedMath)->GetOLEObj().GetOleRef());
- sal_Int64 nAspect = m_postponedMath->GetAspect();
- svt::EmbeddedObjectRef aObjRef( xObj, nAspect );
-
- uno::Reference< uno::XInterface > xInterface( aObjRef->getComponent(), uno::UNO_QUERY );
+ uno::Reference< uno::XInterface > xInterface( xObj->getComponent(), uno::UNO_QUERY );
if( OoxmlFormulaExportBase* formulaexport = dynamic_cast< OoxmlFormulaExportBase* >( xInterface.get()))
formulaexport->writeFormulaOoxml( m_pSerializer, GetExport().GetFilter().getVersion());
else
More information about the Libreoffice-commits
mailing list