diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-09-03 18:45:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-05 09:10:33 +0200 |
commit | 8b9e7617e967c4033d9853e6bc2e96334bf6b243 (patch) | |
tree | f9650b48c377b5ba00f0427bf7af3692bc6749f4 /reportdesign | |
parent | dcd08af1808d7984f32d4156c06e4d6c6c25560e (diff) |
tdf#150756 Assertion when opening report for editing
Change-Id: I59cbbc63175a95568f9a0390ab618a5f32d6488b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139331
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/core/sdr/RptModel.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/reportdesign/source/core/sdr/RptModel.cxx b/reportdesign/source/core/sdr/RptModel.cxx index e7fa935f8612..90553afec835 100644 --- a/reportdesign/source/core/sdr/RptModel.cxx +++ b/reportdesign/source/core/sdr/RptModel.cxx @@ -59,11 +59,13 @@ OReportModel::~OReportModel() void OReportModel::detachController() { - m_pReportDefinition = nullptr; + if (!m_pReportDefinition) + return; m_pController = nullptr; m_xUndoEnv->EndListening( *this ); ClearUndoBuffer(); m_xUndoEnv->Clear(OXUndoEnvironment::Accessor()); + m_pReportDefinition = nullptr; } rtl::Reference<SdrPage> OReportModel::AllocPage(bool /*bMasterPage*/) |