diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-18 11:36:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-20 10:08:01 +0200 |
commit | 1e75e6533bdb30f2645ea2119121c8e536cff3ac (patch) | |
tree | c8b36bec8ca0d3ad77c4eb2b61d8f8a445924abf /chart2 | |
parent | aa779fbd649dbf0e8e35ba744cdc81bd7171057b (diff) |
add assert to catch case that should never happen
otherwise we will lose a piece of the rendering
Change-Id: I65bf0514665551c4930fe6d7462646e334c61989
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141493
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/ShapeFactory.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx index d1f73636c546..29259bb7100c 100644 --- a/chart2/source/view/main/ShapeFactory.cxx +++ b/chart2/source/view/main/ShapeFactory.cxx @@ -2007,6 +2007,7 @@ rtl::Reference<SvxShapeRect> ShapeFactory::createRectangle( if (ePos == StackPosition::Bottom) { uno::Reference<drawing::XShapes2> xTarget2(static_cast<cppu::OWeakObject*>(xTarget.get()), uno::UNO_QUERY); + assert(xTarget2); if (xTarget2.is()) xTarget2->addBottom(xShape); } |