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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user