Kaydet (Commit) 9679b6ab authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane Kaydeden (comit) Petr Mladek

fdo#48056 treat report chart as draw chart

Change-Id: I0a716b4339747f1994e5c8710e15474807aea4a2
Reviewed-on: https://gerrit.libreoffice.org/3767Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMiklos Vajna <vmiklos@suse.cz>
üst c3b9aa09
......@@ -405,6 +405,12 @@
// #110743#
#define BF_SO3_SCH_CLASSID BF_SO3_SCH_CLASSID_50
// Report chart
#define SO3_RPTCH_CLASSID \
0x80243D39, 0x6741, 0x46C5, 0x92, 0x6E, 0x06, \
0x91, 0x64, 0xFF, 0x87, 0xBB
/****************************************************
* StarImage
****************************************************/
......
......@@ -1079,7 +1079,8 @@ void XMLShapeExport::ImpCalcShapeType(const uno::Reference< drawing::XShape >& x
rtl::OUString sCLSID;
if(xPropSet->getPropertyValue(OUString("CLSID")) >>= sCLSID)
{
if (sCLSID.equals(mrExport.GetChartExport()->getChartCLSID()))
if (sCLSID.equals(mrExport.GetChartExport()->getChartCLSID()) ||
sCLSID.equals(rtl::OUString( SvGlobalName( SO3_RPTCH_CLASSID ).GetHexName())))
{
eShapeType = XmlShapeTypeDrawChartShape;
}
......
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