summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorArmin Le Grand (Allotropia) <Armin.Le.Grand@me.com>2022-05-23 15:48:41 +0200
committerArmin Le Grand <Armin.Le.Grand@me.com>2022-05-25 09:59:17 +0200
commit8b4b852a35149b1cfffc681cbb4f57d4c0b671b3 (patch)
tree66dc1121c200bc0baa7caa135cee60cb02a67f80 /writerfilter
parent2682828f73a6c759735613ec924357424baeae24 (diff)
Advanced Diagram support: Isolated IDiagramHelper, selection visualization
Moved and isolated IDiagramHelper to own file to get SdrObjGroup smaller and less dependent again, all places adapted. isDiagram() now available at SdrObject directly, adapted and have less places which need to cast for SdrObjGroup for check. Started to add SdrHdl/selection visualization to seleced Diagram. Only as a start, will need to be extended to look good/better, plus evtl. functionality in handles/UI. Corrected error(s) found by failing UnitTests More clang-notes (static, namespace) I nneeded to follow Change-Id: If4675b3270d3ee30259fce49deb017dbbaf5c0c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134825 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/GraphicImport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx
index 2f006bbd2e5a..49435404c003 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -919,7 +919,7 @@ void GraphicImport::lcl_attribute(Id nName, Value& rValue)
// tdf#143455: A diagram is imported as group, but has no valid object list
// and contour wrap is different to Word. As workaround diagrams are excluded
// here in various places.
- const SdrObjGroup* pDiagramCandidate(dynamic_cast<const SdrObjGroup*>(SdrObject::getSdrObjectFromXShape(m_xShape)));
+ const SdrObject* pDiagramCandidate(SdrObject::getSdrObjectFromXShape(m_xShape));
const bool bIsDiagram(nullptr != pDiagramCandidate && pDiagramCandidate->isDiagram());
// tdf#143476: A lockedCanvas (Word2007) is imported as group, but has not
// got size and position. Values from m_Impl has to be used.