diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2024-01-17 20:33:43 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-01-20 19:25:18 +0100 |
commit | 40fe6989be3a1e2b2b18664095413e32076c1a83 (patch) | |
tree | 29f027f0287265848e46bd3959f67f3ae7d42d2b /basctl | |
parent | 98caed65993243a39945c3763d2b99cacce671a7 (diff) |
tdf#159247 Fix crash while adding control with default properties (Dialog Editor)
Controls created using the Ctrl+toolbar (which adds a control with default properties) did not have a parent form, which causes the crash.
Change-Id: Ic2f469e6656a93bbed25d86092384f81b21aaca5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162217
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@libreoffice.org>
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
(cherry picked from commit c4e5b1b934fc3c59fb35ae6c02a0ddf8501a6d28)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162278
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index 2eb099718b5b..a91a6511bd50 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -620,6 +620,8 @@ void DlgEditor::CreateDefaultObject() // set default property values pDlgEdObj->SetDefaults(); + // set the form to which the new object belongs + pDlgEdObj->SetDlgEdForm(pDlgEdForm.get()); // insert object into drawing page SdrPageView* pPageView = pDlgEdView->GetSdrPageView(); |