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>
This commit is contained in:
Noel Grandin
2020-02-12 14:10:27 +02:00
committed by Caolán McNamara
parent 1ff2bf54e9
commit 607be34d37

View File

@@ -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 );