diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-04-05 22:29:23 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-04-06 18:55:46 +0200 |
commit | e0bd17c169fbf97f7f3223db43c432f9c4513602 (patch) | |
tree | cc2d01995d2bc17866f089bd63ad00d874bdfb6f /chart2 | |
parent | 4a537cf77affc4f1f2e2e5be9ff0b1ff11724509 (diff) |
tdf#148395: CRASH: doubleclick on chart OLE Object (bandaid)
Change-Id: I623d2cf4b4665cd33e30ef0891d831370faf2553
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132591
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 78ed71f1830e..e31e008fc565 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -151,7 +151,9 @@ ChartModel::ChartModel( const ChartModel & rOther ) Reference< util::XModifyListener > xListener; Reference< chart2::XTitle > xNewTitle = CreateRefClone< chart2::XTitle >()( rOther.m_xTitle ); - rtl::Reference< ::chart::Diagram > xNewDiagram = new ::chart::Diagram( *rOther.m_xDiagram ); + rtl::Reference< ::chart::Diagram > xNewDiagram; + if (rOther.m_xDiagram.is()) + xNewDiagram = new ::chart::Diagram( *rOther.m_xDiagram ); rtl::Reference< ::chart::PageBackground > xNewPageBackground = new PageBackground( *rOther.m_xPageBackground ); rtl::Reference< ::chart::ChartTypeManager > xChartTypeManager; // does not implement XCloneable rtl::Reference< ::chart::NameContainer > xXMLNamespaceMap = new NameContainer( *rOther.m_xXMLNamespaceMap ); |