Create a odg file with many pages and add a different background jpg image to each page (without borders). When you save the file and open it again, some background images are often (but not always) changed to other background images from other pages.
Can you provide a sample file? Also, what version of LibreOffice are you using? What OS? Please, copy and paste the "Version Information" found under Help - About LibreOffice.
Created attachment 180270 [details] sample
the background image of page one got overwriten by the image of page two in this file. Version: 7.3.2.2 (x64) / LibreOffice Community Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0 CPU threads: 24; OS: Windows 10.0 Build 22000; UI render: Skia/Vulkan; VCL: win Locale: de-DE (de_DE); UI: de-DE Calc: threaded
[Automated Action] NeedInfo-To-Unconfirmed
Created attachment 180307 [details] sample 2 Here is a more simple test file. The image of page one got overwritten by the image of page 9.
Created attachment 180616 [details] Image should not share to another
(In reply to Matheswaran.S from comment #6) > Created attachment 180616 [details] > Image should not share to another OS Linux mint 20.2 cinnamon 64-bit OS version:5.4.0-113-generic Steps to reproduce: 1) Open Libreoffice Draw. 2) select Drawing page. 3) create new page. 4) set different background image in separate page. 5) save the odg file 6) close proper Libreoffice Draw 7) then open the odg file Actual result: jpej image displayed in all pages. Expected result: All the images should be display in separate page.
I could reproduce this from scratch at least once, but it seems to be unreliable indeed. I even did a useless bisecting run. Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 959fbfc000d2e3167b2b57b6d11bea231993b4f0 CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Jumbo Built on 17 January 2023
Dear maximilian-schindler, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Created attachment 200728 [details] The bug is still present in LibreOffice 25.2.3.2: Background images get swaped upon saving an odg file.
The bug is still present in Version 25.2.3.2. Here is a VersionInfo: Version: 25.2.3.2 (X86_64) / LibreOffice Community Build ID: bbb074479178df812d175f709636b368952c2ce3 CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win Locale: de-DE (de_DE); UI: de-DE Calc: CL threaded I also installed LibreOffice 3.3.0 and it doesn't seem like there is even an option for custom background images. There is only an option for some predefined background images, which didn't change/swap upon saving the file. So I'm adding 'regression' as a keyword.
*** Bug 166688 has been marked as a duplicate of this bug. ***
bibisected with linux-64-6.3, bibisected with win32-6.3 Version: 6.3.0.0.alpha0+ Build ID: ec7ba61a6164c805f5a71b077715b7e1521a2d62 author Noel Grandin commit ec7ba61a6164c805f5a71b077715b7e1521a2d62 simplify SfxPoolItemArray_Impl (tdf#81765 related) Since we want to look up items by pointer, just store them in a std::unordered_set, which allows fast find(). This dramatically simplifies most operations on this data structure. Fix a dodgy sd test that was relying on items with the same whichid being in the pool being in a certain order. Change-Id: I4d79fc718f95e3083a20788be1050fbe9fca7263 Reviewed-on: https://gerrit.libreoffice.org/70881
[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
Tomaž Vajngerl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/cb5a4314c3561179e556107b81830a9949b20517 tdf#149207 fix image not getting a unique name It will be available in 25.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Tomaž Vajngerl committed a patch related to this issue. It has been pushed to "libreoffice-25-2": https://git.libreoffice.org/core/commit/02ad260a8d0a32924b6cca1d4a7e1e8bac34dc7f tdf#149207 fix image not getting a unique name It will be available in 25.2.5. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
I guess this is fixed now...