chart2/source/view/main/ShapeFactory.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1e75e6533bdb30f2645ea2119121c8e536cff3ac
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Oct 18 11:36:25 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Oct 20 10:08:01 2022 +0200

    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.gran...@collabora.co.uk>
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

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);
     }

Reply via email to