sw: code simplification
XEmbeddedObject already implements XClassifiedObject which contains a getClassID method. Change-Id: Ifbeed343493208fff3704b21ee484fd92c570974
This commit is contained in:
@@ -3506,9 +3506,7 @@ void DocxAttributeOutput::WritePostponedChart()
|
||||
bool DocxAttributeOutput::WriteOLEMath( const SdrObject*, const SwOLENode& rOLENode, const Size& )
|
||||
{
|
||||
uno::Reference < embed::XEmbeddedObject > xObj(const_cast<SwOLENode&>(rOLENode).GetOLEObj().GetOleRef());
|
||||
sal_Int64 nAspect = rOLENode.GetAspect();
|
||||
svt::EmbeddedObjectRef aObjRef( xObj, nAspect );
|
||||
SvGlobalName aObjName(aObjRef->getClassID());
|
||||
SvGlobalName aObjName(xObj->getClassID());
|
||||
|
||||
if( !SotExchange::IsMath(aObjName) )
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user