coverity#1416886 Unchecked dynamic_cast

Change-Id: I5a6a4ec99449d70d2dd812cf5520900e4d0d3d14
Reviewed-on: https://gerrit.libreoffice.org/41603
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2017-08-27 13:40:51 +01:00
parent ae8e1ad2e3
commit 6b8e3ab384

View File

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