// definitely delete Undo Cycles and all Undoables in them
// that cannot be redone now:
while ((int)undoList.count() > undoPointer + 1 && (int)undoList.count() > 0)
{
// definitely delete Undo Cycles and all Undoables in them
// that cannot be redone now:
while ((int)undoList.count() > undoPointer + 1 && (int)undoList.count() > 0)
{