summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-07-24 13:05:26 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-07-24 17:31:38 +0200
commit84a0cdf166ea9ab5073b085193d0f10958897437 (patch)
tree64bd486d057927b17772dae4b6a36d9fe5fd7b2e
parent7e863504854ae8ab286b32510aba8b363a8e314b (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. Reviewed-on: https://gerrit.libreoffice.org/57913 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> (cherry picked from commit 6de194cb685dbe105a73812afa73070d04341bfb) (The sc part is missing in libreoffice-6-1 so only fix sw) Change-Id: I09a1b37b917b267a84ee95fb375658974ee1b320 Reviewed-on: https://gerrit.libreoffice.org/57924 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/uibase/uiview/viewdlg2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewdlg2.cxx b/sw/source/uibase/uiview/viewdlg2.cxx
index 41bec30c8023..3e5174475249 100644
--- a/sw/source/uibase/uiview/viewdlg2.cxx
+++ b/sw/source/uibase/uiview/viewdlg2.cxx
@@ -84,8 +84,8 @@ void SwView::ExecDlgExt(SfxRequest const &rReq)
assert(pFact && "VclAbstractDialogFactory fail!");
const uno::Reference<frame::XModel> xModel(GetCurrentDocument());
- VclPtr<AbstractSignSignatureLineDialog> pDialog
- = pFact->CreateSignSignatureLineDialog(GetFrameWeld(), xModel);
+ ScopedVclPtr<AbstractSignSignatureLineDialog> pDialog(
+ pFact->CreateSignSignatureLineDialog(GetFrameWeld(), xModel));
assert(pDialog && "Dialog creation failed!");
if (pDialog)