[Libreoffice-commits] core.git: chart2/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Apr 5 13:53:33 UTC 2020
chart2/source/controller/dialogs/DataBrowser.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 66b5cbf67b3966ca160a50096d982b3822f08bee
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Apr 5 14:10:55 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Apr 5 15:52:53 2020 +0200
tdf#131873 data table fills with extra columns during scroll
Change-Id: Iccdb113a609e0873fb68cfb52405993a0f4362bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91704
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx
index 5887d85af217..d0195a5d323b 100644
--- a/chart2/source/controller/dialogs/DataBrowser.cxx
+++ b/chart2/source/controller/dialogs/DataBrowser.cxx
@@ -211,6 +211,9 @@ private:
std::unique_ptr<weld::Builder> m_xBuilder1;
std::unique_ptr<weld::Builder> m_xBuilder2;
+ weld::Container* m_pParent;
+ weld::Container* m_pColorParent;
+
std::unique_ptr<weld::Container> m_xContainer1;
std::unique_ptr<weld::Container> m_xContainer2;
std::unique_ptr<weld::Image> m_spSymbol;
@@ -238,6 +241,8 @@ SeriesHeader::SeriesHeader(weld::Container* pParent, weld::Container* pColorPare
: m_aUpdateDataTimer("UpdateDataTimer")
, m_xBuilder1(Application::CreateBuilder(pParent, "modules/schart/ui/columnfragment.ui"))
, m_xBuilder2(Application::CreateBuilder(pColorParent, "modules/schart/ui/imagefragment.ui"))
+ , m_pParent(pParent)
+ , m_pColorParent(pColorParent)
, m_xContainer1(m_xBuilder1->weld_container("container"))
, m_xContainer2(m_xBuilder2->weld_container("container"))
, m_spSymbol(m_xBuilder1->weld_image("image"))
@@ -261,6 +266,8 @@ SeriesHeader::~SeriesHeader()
{
m_aUpdateDataTimer.Stop();
m_xDevice.clear();
+ m_pParent->move(m_xContainer1.get(), nullptr);
+ m_pColorParent->move(m_xContainer2.get(), nullptr);
m_xBuilder2.reset();
m_xBuilder1.reset();
}
More information about the Libreoffice-commits
mailing list