diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-12 14:10:27 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-12 17:35:16 +0100 |
commit | 607be34d37ecba57e570aecd1978b79d1d3ad32c (patch) | |
tree | 684e4c87e1812bffab7152732e291c47f73d9aca /sc/source | |
parent | 1ff2bf54e920f1bc85ca14778639eb4b9652a910 (diff) |
crashtesting: convert assert to SAL_WARN_IF
Change-Id: I70a9922960dee978be05218ebf16a8186c3bc0c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88524
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index c9becf98ae4d..733ba53d2f6d 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -1370,7 +1370,7 @@ ScPostIt* ScDocFunc::ImportNote( const ScAddress& rPos, const OUString& rNoteTex ScDocument& rDoc = rDocShell.GetDocument(); std::unique_ptr<ScPostIt> pOldNote = rDoc.ReleaseNote( rPos ); - assert(!pOldNote && "imported data has >1 notes on same cell?"); + SAL_WARN_IF(pOldNote, "sc.ui", "imported data has >1 notes on same cell? at pos " << rPos); // create new note ScPostIt* pNewNote = ScNoteUtil::CreateNoteFromString( rDoc, rPos, rNoteText, false, true, /*nNoteId*/0 ); |