diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-12-04 15:27:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-12-04 20:58:12 +0100 |
commit | 997284391747771288c73d5b52d75b822fe04904 (patch) | |
tree | ad8aa267231d37f3f5dc755fda69c95051028c42 | |
parent | 9e2e6c27231f916fec349ff60cb0f2c12e0988ad (diff) |
Resolves: tdf#121641 properties invisible after 'reset'
Change-Id: Iedb2b11be0e008501273925d6ae7137b28c3b912
Reviewed-on: https://gerrit.libreoffice.org/64537
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 07cd83366b8f..316372ec6f2b 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1482,7 +1482,10 @@ void CustomPropertiesWindow::dispose() { m_aEditLoseFocusIdle.Stop(); m_aBoxLoseFocusIdle.Stop(); - ClearAllLines(); + + m_aCustomPropertiesLines.clear(); + m_pCurrentLine = nullptr; + m_pHeaderBar.clear(); m_pScrollBar.clear(); m_pHeaderAccName.clear(); @@ -1714,7 +1717,10 @@ bool CustomPropertiesWindow::AreAllLinesValid() const void CustomPropertiesWindow::ClearAllLines() { - m_aCustomPropertiesLines.clear(); + for (auto& pLine : m_aCustomPropertiesLines) + { + pLine->Clear(); + } m_pCurrentLine = nullptr; m_aCustomProperties.clear(); m_nScrollPos = 0; |