When saving the file as a Model, masks are renamed according to the file name.
Step to reproduce the bug:
1- Create a new Impress Presentation
2- View > Master > Slide Master
3- Add a master and rename it. Add as many as you want.
4- Save the file as a Model.
5- Observe that masks are renamed as "filename", "filename1", etc. (Note: there was a space in the file name, it's changed to "%20")
I'm using libreoffice-5-0-4 branch on Windows 7. I tested with libreoffice-4-3-7 and the masks names are not changed.
Any idea where that behaviour could be handled? I'll start to dig in but it can be nice to have a starting point :)
Thanks for filing the issue.
I think this must be the same as bug 62717.
So I close as duplicate.
You may want to add some comments there?
*** This bug has been marked as a duplicate of bug 62717 ***