Kaydet (Commit) b3e5d954 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#121644 clear pointer to customlines when customlines cleared

Change-Id: I09bf6f3c484a2d90a865f0a5743c4e99d2f77b0a
Reviewed-on: https://gerrit.libreoffice.org/63871
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 981a98af
......@@ -1588,7 +1588,7 @@ bool CustomPropertiesWindow::IsLineValid( CustomPropertyLine* pLine ) const
void CustomPropertiesWindow::ValidateLine( CustomPropertyLine* pLine, bool bIsFromTypeBox )
{
if ( !IsLineValid( pLine ) )
if (pLine && !IsLineValid(pLine))
{
if ( bIsFromTypeBox ) // LoseFocus of TypeBox
pLine->m_bTypeLostFocus = true;
......@@ -1714,6 +1714,7 @@ bool CustomPropertiesWindow::AreAllLinesValid() const
void CustomPropertiesWindow::ClearAllLines()
{
m_aCustomPropertiesLines.clear();
m_pCurrentLine = nullptr;
m_aCustomProperties.clear();
m_nScrollPos = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment