[Libreoffice-commits] core.git: sw/qa

Caolán McNamara caolanm at redhat.com
Sun Aug 27 19:46:01 UTC 2017


 sw/qa/extras/ooxmlexport/ooxmlexport9.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 6b8e3ab384efb0e8a1d2f49eb8e5b306ceb640bc
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Aug 27 13:40:51 2017 +0100

    coverity#1416886 Unchecked dynamic_cast
    
    Change-Id: I5a6a4ec99449d70d2dd812cf5520900e4d0d3d14
    Reviewed-on: https://gerrit.libreoffice.org/41603
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
index f381de9c9032..ba35ee12fdc8 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
@@ -1000,6 +1000,7 @@ DECLARE_OOXMLEXPORT_TEST(testWatermarkLayer, "watermark-layer.docx")
     // Watermark was not visible if page background was set.
 
     SwXTextDocument* pTextDoc = dynamic_cast<SwXTextDocument*>(mxComponent.get());
+    CPPUNIT_ASSERT(pTextDoc);
     SdrPage* pPage = pTextDoc->GetDocShell()->GetDoc()->getIDocumentDrawModelAccess().GetDrawModel()->GetPage(0);
     SdrObject* pObject = pPage->GetObj(0);
 


More information about the Libreoffice-commits mailing list