Problem with ANCHOR an image object in CALC

Hello, I have a problem with anchoring an image object, in a cell of Calc.
The problem is repeatable as following:
first, you set up a little list with Name, Surname and a picture of the person, inserted as jpg with few kB image and anchored to the cell;
then try to sort the list using Name or Surname;
the result is that the image doesn’t follow the correct name/surname sorted record.

Even if you try to CTRL-Z undo the operation the result is wrong.

LibreOffice version 24.2.3.2
Linux 6.5
KDE Neon 6.0

Not with me:


Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded


106478 HB Sort with pictures.ods (66,3 KB)

And look at the Options page in that dialog. It has the option “Include boundary row(s) containing only images”. Perhaps that is not check for you?

ok, this option is checked

Thank for your replay,
try this, using the automatic filter icons:
on the first columns select i.e. the “e” letter, then on the third column sort in descending order.
What happens, everything ok ?

[Sorting problem 3.ods|attachment]


(upload://2cutHvCYWH7PwMD8nNxPbmwDnFk.ods) (105.7 KB)

sorry, the above is a screenshot of the result.
this is the test file I’m using
Sorting problem 3.ods (105.7 KB)

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); UI: it-IT
Flatpak
Calc: threaded

Sort first, filter second.

1 Like

I’m pretty sure that the address book of your distribution’s mail program can store names, address data and pictures. There is plenty of free software organizing pictures by keywords, categories and dates.
Nothing qualifies a spreadsheet to store text data, let alone pictures. Pictures on sheets are decoration or illustration. Pictures do not belong to cell values. They are attached to a different layer beyond the cell grid.
If you really want to organize personal data with pictures with LibreOffice, you may want to develop a database application with LibreOffice Base.
Demo: https://www.mediafire.com/file/b4p5155c1y8bhoq/Headshots.zip/file
The zip file contains pictures of “persons” and a database document.
The database document contains an input form where you can filter the persons by surname, birthdate or if they already have some picture or not. Empty criteria are ignored. The tables and queries are of no importance to the database user.

The form can edit, remove and add persons.
The form can filter and sort the persons in many ways.
The form can attach picture files to each person.
No duplicates. You can not store the same combination of names and birthdate twice.
You can not assign the same picture to different persons. For 100 persons you need 100 different pictures.
The report displays persons in a printable layout. The persons are filtered by the same criteria as entered into the top section of the input form.

This moderately sophisticated database demo works with no macros.

Thanks Villeroy for your clarification and for the LO Base example,
I though this could be a task possible to handle with LO …
Google Sheet seems capable to manage it …

I see hidden rows in your screenshot. So it might be https://bugs.documentfoundation.org/show_bug.cgi?id=160329
Please try a daily build (24.8) or the pre-release of 24.2.4, which will contain the fix, or wait till 24.2.4 is released; it is coming soon.

1 Like

Google and MS Excel do not have any database component. Build your pseudo-database with Google or whatever. I’m pretty sure that your mail program does a better job than any spreadsheet application.

OK, great !
with the last release, 24.2.4.2, the problem seems fixed,
now I can sort and filter without loosing the icons position
Thanks all …!