From 607be34d37ecba57e570aecd1978b79d1d3ad32c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 12 Feb 2020 14:10:27 +0200 Subject: [PATCH] crashtesting: convert assert to SAL_WARN_IF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I70a9922960dee978be05218ebf16a8186c3bc0c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88524 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sc/source/ui/docshell/docfunc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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 );