summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-19 12:22:03 +0200
committerNoel Grandin <noel@peralex.com>2015-10-19 13:08:29 +0200
commitc8479bdc5b007ca5ffe1d553be3d90fb03424526 (patch)
treef927ba8085da8c9dc46d1cda669fbac8af724abf /sd
parent39e63bfac528d8c5c002ee8fef4a1e5d7181b826 (diff)
convert DBG_ASSERTWARNING to SAL_WARN_IF
I know the comment in debug.hxx said to use SAL_INFO, but SAL_WARN makes much more sense. Change-Id: I3d81f9db89ef8cebe1e4f2983941d69b4c7e6b7d
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index dac47fe62954..f23b9f9cf73e 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -231,9 +231,9 @@ void SdDrawDocument::UpdatePageObjectsInNotes(sal_uInt16 nStartPos)
pObj->GetObjInventor() == SdrInventor)
{
// The page object is the preceding page (drawing page)
- DBG_ASSERTWARNING(nStartPos, "Position of notes page must not be 0.");
+ SAL_WARN_IF(!nStartPos, "sd", "Position of notes page must not be 0.");
- DBG_ASSERTWARNING(nPage > 1, "Page object must not be a handout.");
+ SAL_WARN_IF(nPage <= 1, "sd", "Page object must not be a handout.");
if (nStartPos > 0 && nPage > 1)
static_cast<SdrPageObj*>(pObj)->SetReferencedPage(GetPage(nPage - 1));