summaryrefslogtreecommitdiff
path: root/svx/qa/unit/svdraw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/qa/unit/svdraw.cxx')
-rw-r--r--svx/qa/unit/svdraw.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/qa/unit/svdraw.cxx b/svx/qa/unit/svdraw.cxx
index e2c6b58a9dac..b3262e588e94 100644
--- a/svx/qa/unit/svdraw.cxx
+++ b/svx/qa/unit/svdraw.cxx
@@ -862,10 +862,11 @@ CPPUNIT_TEST_FIXTURE(SvdrawTest, testVisualSignResize)
{
return;
}
- SdrView* pView = SfxViewShell::Current()->GetDrawView();
+ SfxViewShell* pViewShell
+ = SfxViewShell::Get(uno::Reference<frame::XController>(xController, uno::UNO_QUERY));
svl::crypto::CertificateOrName aCertificateOrName;
aCertificateOrName.m_xCertificate = xCert;
- svx::SignatureLineHelper::setShapeCertificate(pView, aCertificateOrName);
+ svx::SignatureLineHelper::setShapeCertificate(pViewShell, aCertificateOrName);
pObjectShell->SetModified(false);
// When resizing the shape by moving the bottom right (last) handle towards top right: