summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-03 10:58:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-03 18:09:53 +0200
commit8ac055fa8aa7ea6c15fc5e8c36df840978878a6f (patch)
tree4d939b50f3040c813dc5a9c03ce87bfdbedf019f /svtools
parent97ccd327c66660c9f7c9e625e3c5469b2ce42622 (diff)
change FormattedEntry to not own the Entry it operates on
Change-Id: I5b5753312a5bbfed3dbcdc47cc1781cbcf168750 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97858 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/ebbcontrols.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx
index 8513f53f22f5..70f7a64b5b6d 100644
--- a/svtools/source/brwbox/ebbcontrols.cxx
+++ b/svtools/source/brwbox/ebbcontrols.cxx
@@ -383,14 +383,16 @@ namespace svt
FormattedControl::FormattedControl(vcl::Window* pParent)
: EditControlBase(pParent)
- , m_xFormattedEntry(new weld::FormattedEntry(m_xBuilder->weld_entry("entry")))
+ , m_xEntry(m_xBuilder->weld_entry("entry"))
+ , m_xFormattedEntry(new weld::FormattedEntry(*m_xEntry))
{
- init(m_xFormattedEntry->get_widget());
+ init(m_xEntry.get());
}
void FormattedControl::dispose()
{
m_xFormattedEntry.reset();
+ m_xEntry.reset();
EditControlBase::dispose();
}