Kaydet (Commit) 35bb22c1 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#106105 duplicate marks not merged when they are at the start

i.e. initial mark isn't compared which goes on to crash under some circumstances

regression from...

commit aa11e7ba
Date:   Tue Aug 14 16:31:53 2012 +0200

    Convert maList in SdrMarkList from Container to std::vector

Change-Id: Ib3e9b02aad91c14971656af171d48154507da127
üst 329a6985
......@@ -179,8 +179,9 @@ void SdrMarkList::ImpForceSort()
if(maList.size() > 1)
{
SdrMark* pAkt = maList.back();
for (size_t i = maList.size() - 2; i; --i)
for (size_t count = maList.size() - 1; count; --count)
{
size_t i = count - 1;
SdrMark* pCmp = maList[i];
if(pAkt->GetMarkedSdrObj() == pCmp->GetMarkedSdrObj() && pAkt->GetMarkedSdrObj())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment