diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-24 09:02:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-24 14:25:29 +0200 |
commit | 00af4b1e5157d1a7f71da168dc7b48707e9113cd (patch) | |
tree | 48cb6eedabcbea5c0759eeb6548cb3bd713ddcc6 /cui | |
parent | b055dda3c82086f5c633403bd952209d6ed4288f (diff) |
cid#1451635 silence Dereference after null check
Change-Id: Ie5978be908647fe1215e1517a2bf638c7936dae2
Reviewed-on: https://gerrit.libreoffice.org/76225
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 9c6e90b74c25..dc2a9b4ef83e 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -1483,6 +1483,7 @@ bool SentenceEditWindow_Impl::KeyInput(const KeyEvent& rKeyEvt) if (pErrorAttrib->nStart != m_nErrorStart || pErrorAttrib->nEnd != m_nErrorEnd) { std::unique_ptr<SfxPoolItem> xNewError(pErrorAttrib->pAttr->Clone()); + assert(pErrorAttr); m_xEditEngine->RemoveAttribs(ESelection(0, pErrorAttr->nStart, 0, pErrorAttr->nEnd), false, EE_CHAR_GRABBAG); SetAttrib(*xNewError, m_nErrorStart, m_nErrorEnd); } |