https://bugs.documentfoundation.org/show_bug.cgi?id=149207
--- Comment #14 from Tomaz Vajngerl <[email protected]> --- [1] is a workaround for this issue. The issue is that in the function XFillBitmapItem::checkForUniqueItem we call CheckNamedItem function (implemented in svx/source/xoutdev/xattr.cxx:137) and this function now doesn't make the name unique. So if you add 2 page background images: the input to CheckNamedItem is "background" and it returns "background", for the second background it's the same: input "background" and it returns "background" even when this name was already used for the first image. I have added a test for this to [1], which checks exactly this. The issue with the same name is then that the ODP export filter uses that unique name to determine if the background image needs to be written to the document or has already been written by checking the name and yeah - if two images have the same name... boom. The workaround is that we don't enter "background" for the image name, so if the input string is empty, the CheckNamedItem will automatically produce a new unique name and voila - no more uniqueness violations - at least in this case. [1] https://gerrit.libreoffice.org/c/core/+/185699 -- You are receiving this mail because: You are the assignee for the bug.
