diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-12-04 15:27:54 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2019-01-01 22:52:27 +0100 |
commit | 01e263bad891abea9bc671a29c95ea8a8b5fb842 (patch) | |
tree | dbb79e2e29daef0aa88273ffd26251c680b29ec1 | |
parent | 78c52b1ab97397f99af279df78df798efde91136 (diff) |
Resolves: tdf#121641 properties invisible after 'reset'
Change-Id: Iedb2b11be0e008501273925d6ae7137b28c3b912
Reviewed-on: https://gerrit.libreoffice.org/64539
Tested-by: Jenkins
Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 2e560e73520b..6cb3600a491a 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1511,7 +1511,14 @@ void CustomPropertiesWindow::dispose() { m_aEditLoseFocusIdle.Stop(); m_aBoxLoseFocusIdle.Stop(); - ClearAllLines(); + + for (CustomPropertyLine* pLine : m_aCustomPropertiesLines) + { + delete pLine; + } + m_pCurrentLine = nullptr; + m_aCustomPropertiesLines.clear(); + m_pHeaderBar.clear(); m_pScrollBar.clear(); m_pHeaderAccName.clear(); @@ -1746,16 +1753,12 @@ bool CustomPropertiesWindow::AreAllLinesValid() const void CustomPropertiesWindow::ClearAllLines() { - std::vector< CustomPropertyLine* >::iterator pIter; - for ( pIter = m_aCustomPropertiesLines.begin(); - pIter != m_aCustomPropertiesLines.end(); ++pIter ) + for (CustomPropertyLine* pLine : m_aCustomPropertiesLines) { - CustomPropertyLine* pLine = *pIter; - delete pLine; + pLine->Clear(); } m_pCurrentLine = nullptr; m_aCustomProperties.clear(); - m_aCustomPropertiesLines.clear(); m_nScrollPos = 0; } |