Forgot another thing: In undo.cpp :

void prepareOperationGroup(Undo& group) {
...
if (op->type==UndoOp::AddEvent) // we need to clone the event
  newop = UndoOp(UndoOp::AddEvent, op->nEvent.clone(), it, op->doCtrls, 
  op->doClones);
else if (op->type==UndoOp::DeleteEvent)
  newop = UndoOp(UndoOp::DeleteEvent, it->events().findSimilar(
  op->nEvent)->second, it, op->doCtrls, op->doClones);
else if (op->type==UndoOp::ModifyEvent)
  newop = UndoOp(UndoOp::ModifyEvent, op->nEvent.clone(), 
  it->events().findSimilar(op->oEvent)->second, it, op->doCtrls, op->doClones);
...
}

I see findSimilar()->second up there.

But findSimilar may return end().

So taking end()->second will *crash*, right?

Thanks.
Tim.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Lmuse-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmuse-developer

Reply via email to