@yuya,
Thank you for the issue description. I reproduced the problem with cloning slides and logged the issue with ID SLIDESNET-42783 in our tracking system. Our development team will investigate this case. You will be notified when the problem is fixed.
I have observed the logic of your code snippet. As a workaround, I would suggest you to use another way to change slide order like this:
var basePpt = new Presentation("basefile.pptx");
var targetSlide = basePpt.Slides[1];
basePpt.Slides.Reorder(0, targetSlide);
basePpt.Save("basefile_out.pptx", SaveFormat.Pptx);
Thank you for issuing the failure ticket.
We are waiting for it to be fixed.
Thanks for the workaround.
I’m keeping the source simple for the sample, so I’m not sure if this workaround is all right, but if it’s just sorting, there’s a method called Reorder, right?
Thank you for teaching me.
By the way, if this problem is solved, can you tell me what caused it?
The problem this time is, unlike the other obstacles I’ve mentioned in the forums, it’s unclear what causes the error.
I also want to know why ReOrder does not cause this problem.
I don’t know what the problem is so far, so I’m scared when it happens again.