[Libreoffice-commits] core.git: sc/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 12 16:35:55 UTC 2020
sc/source/ui/docshell/docfunc.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 607be34d37ecba57e570aecd1978b79d1d3ad32c
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Feb 12 14:10:27 2020 +0200
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Feb 12 17:35:16 2020 +0100
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 at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
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 );
More information about the Libreoffice-commits
mailing list