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:
committed by
Caolán McNamara
parent
1ff2bf54e9
commit
607be34d37
@@ -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 );
|
||||
|
Reference in New Issue
Block a user