diff options
-rw-r--r-- | svx/source/svdraw/svdmark.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdmark.cxx b/svx/source/svdraw/svdmark.cxx index e82bc794a14c..bf31cea26892 100644 --- a/svx/source/svdraw/svdmark.cxx +++ b/svx/source/svdraw/svdmark.cxx @@ -36,6 +36,8 @@ #include <svl/SfxBroadcaster.hxx> #include <svx/svdoedge.hxx> +#include <cassert> + void SdrMark::setTime() { TimeValue aNow; @@ -183,7 +185,8 @@ void SdrMarkList::ImpForceSort() { size_t i = count - 1; SdrMark* pCmp = maList[i]; - if(pAkt->GetMarkedSdrObj() == pCmp->GetMarkedSdrObj() && pAkt->GetMarkedSdrObj()) + assert(pAkt->GetMarkedSdrObj()); + if(pAkt->GetMarkedSdrObj() == pCmp->GetMarkedSdrObj()) { // Con1/Con2 Merging if(pCmp->IsCon1()) |