https://bugs.documentfoundation.org/show_bug.cgi?id=159247
--- Comment #4 from Rafael Lima <[email protected]> --- (In reply to Julien Nabet from comment #3) > Now, as often, perhaps I'm just hiding the real pb. So... the real problem is that the object does not have a parent form upon creation. The patch below fixes the problem: 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(); I'll publish it on Gerrit. -- You are receiving this mail because: You are the assignee for the bug.
