[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 4 21:18:50 UTC 2019
vcl/source/app/salvtables.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 99c956ac66852bfcfd49a7468bdaa06bbbb08183
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Dec 4 17:12:16 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Dec 4 22:17:41 2019 +0100
fix manual insert into a size group
Change-Id: I58b58899dacc1bdc6da1ebdd584cba70fe137b1b
Reviewed-on: https://gerrit.libreoffice.org/84443
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 3731f365b68f..1656b6f20823 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1100,8 +1100,8 @@ public:
virtual void add_widget(weld::Widget* pWidget) override
{
SalInstanceWidget* pVclWidget = dynamic_cast<SalInstanceWidget*>(pWidget);
- assert(pVclWidget);
- m_xGroup->insert(pVclWidget->getWidget());
+ assert(pVclWidget && pVclWidget->getWidget());
+ pVclWidget->getWidget()->add_to_size_group(m_xGroup);
}
virtual void set_mode(VclSizeGroupMode eMode) override
{
More information about the Libreoffice-commits
mailing list