summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-07-24 13:05:26 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-07-24 15:06:07 +0200
commit6de194cb685dbe105a73812afa73070d04341bfb (patch)
treef5300bf1f4cc4c5874d5ec2122b7ee063f2bd0be /sc/source/ui/view
parent8347f43707ca1dc4f79dbaf3d5136f35067a6e6d (diff)
sw,sc: Signature Line: fix VclPtr assertion
Insert a Signature Line, right click, Sign..., Cancel include/vcl/vclptr.hxx:116: VclPtr<T>::~VclPtr() [with reference_type = AbstractSignSignatureLineDialog]: Assertion `(!m_rInnerRef.get() || m_rInnerRef->isDisposed() || m_rInnerRef->getRefCount() > 1) && "someone forgot to call dispose()"' failed. Change-Id: I09a1b37b917b267a84ee95fb375658974ee1b320 Reviewed-on: https://gerrit.libreoffice.org/57913 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/tabvwshb.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index 4e5fb7b98869..5fc41502f1ea 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -362,8 +362,8 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq)
GetViewData().GetDocShell()->GetBaseModel());
VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create();
- VclPtr<AbstractSignSignatureLineDialog> pDialog
- = pFact->CreateSignSignatureLineDialog(GetFrameWeld(), xModel);
+ ScopedVclPtr<AbstractSignSignatureLineDialog> pDialog(
+ pFact->CreateSignSignatureLineDialog(GetFrameWeld(), xModel));
pDialog->Execute();
break;
}