Bug 157236 - Images added to list in Page Properties won't delete
Summary: Images added to list in Page Properties won't delete
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-14 13:48 UTC by Don Matschull
Modified: 2023-09-28 23:00 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Don Matschull 2023-09-14 13:48:11 UTC
I opened the Page Properties dialog and went to the Background tab. I selected Image at the top of the Background tab. 

I added two images to the Image area of the tab using the Add/Import button beneath it.

Later, I tried to delete these two images by right clicking on them and selecting delete. I tried this numerous times.

Sometimes the image appeared to be removed.

If I opened a new Draw document and went to the Page Properties dialog, however, the images were back. 

I even tried changing the image names in the file folder where they were original located. I also tried moving the images to another folder. Still, the images appeared in the Page Properties dialog and could be inserted as a background image. They must have been copied to another location.

Thus, I conclude that a bug prevents added images from actually being deleted in the Page Properties dialog.
Comment 1 Buovjaga 2023-09-27 06:48:37 UTC
Not reproduced.

I noticed, though, that you need to be focused on the image that you right-click to delete it. Otherwise you will delete the wrong image.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2902ab24ecc5ffbf4907ea83b2028508b9de6364
CPU threads: 2; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded
Comment 2 Buovjaga 2023-09-27 07:11:53 UTC
(In reply to Buovjaga from comment #1)
> I noticed, though, that you need to be focused on the image that you
> right-click to delete it. Otherwise you will delete the wrong image.

Filed bug 157467 for that.
Comment 3 Don Matschull 2023-09-27 11:12:27 UTC
Selecting the image you want to delete and, then, choosing delete seems to remove the image from the list for that particular document.

However, if I open and new document, the image I deleted appears in the list once more. The image I deleted was one I had added, not a default image.
Comment 4 Buovjaga 2023-09-27 12:39:54 UTC
(In reply to Don Matschull from comment #3)
> Selecting the image you want to delete and, then, choosing delete seems to
> remove the image from the list for that particular document.
> 
> However, if I open and new document, the image I deleted appears in the list
> once more. The image I deleted was one I had added, not a default image.

Yep, that's what I tested in Draw. Now I tested even more. I tried variations of saving the first document, deleting image, opening new one. Saving the first doc, opening new one, deleting image. Still can't reproduce it.
Comment 5 Stéphane Guillou (stragu) 2023-09-28 15:19:33 UTC
Not reproduced in 7.4.7.2 either.

Version: 7.4.7.2 / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Don, can you please:
- update to a version that will see further releases, 7.5 or 7.6
- reset your user profile
- test again
- if you can still reproduce, please share the full version information from Help > About LibreOffice.

Thank you!
Comment 6 Don Matschull 2023-09-28 21:07:45 UTC
(In reply to Stéphane Guillou (stragu) from comment #5)
> Not reproduced in 7.4.7.2 either.
> 
> Version: 7.4.7.2 / LibreOffice Community
> Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
> CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
> Locale: en-AU (en_AU.UTF-8); UI: en-US
> Calc: threaded
> 
> Don, can you please:
> - update to a version that will see further releases, 7.5 or 7.6
> - reset your user profile
> - test again
> - if you can still reproduce, please share the full version information from
> Help > About LibreOffice.
> 
> Thank you!

I updated to:
Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 12; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

I named the User profile folder to User_OLD and restarted LibreOffice. The images I added to the background image list were no longer there, so the problem is evidently in the user profile.

Loosing all of my personal templates and other customized changes, however, is a bigger problem that dealing with two additional images in the background image lists. 

Do you know where the images I added might be stored within the user profile so I can delete just that folder and not lose everything else?
Comment 7 Stéphane Guillou (stragu) 2023-09-28 22:25:55 UTC
(In reply to Don Matschull from comment #6)
> Do you know where the images I added might be stored within the user profile
> so I can delete just that folder and not lose everything else?

Does removing user/gallery help?
Comment 8 Don Matschull 2023-09-28 23:00:11 UTC
(In reply to Stéphane Guillou (stragu) from comment #7)
> (In reply to Don Matschull from comment #6)
> > Do you know where the images I added might be stored within the user profile
> > so I can delete just that folder and not lose everything else?
> 
> Does removing user/gallery help?

That's where I was hoping it was located, but no luck.