Bug 166724 - Checkbox anchor wrongly imported from xlsx
Summary: Checkbox anchor wrongly imported from xlsx
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2025-05-25 18:13 UTC by Michael Zapf
Modified: 2025-08-17 10:46 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Demo Excel file, to be opened in Calc (12.15 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2025-05-25 18:13 UTC, Michael Zapf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zapf 2025-05-25 18:13:26 UTC
Created attachment 200956 [details]
Demo Excel file, to be opened in Calc

After importing an Excel spreadsheet with a checkbox control that is anchored to a cell, the checkbox is then shown as anchored on the page instead. 

For some documents this leads to a wrong position of the checkbox on the sheet and thus makes it unusable.
Comment 1 BogdanB 2025-05-25 18:40:51 UTC
Open the file and insert a row above the checkboxes lines. 
Checkboxes are not in line with the options for them (checkboxes are wrong anchored to page).

Confirm with
Version: 25.2.3.1 (X86_64) / LibreOffice Community
Build ID: d8d1af5f77df955194e52baabe19324532ac8e8b
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 2 BogdanB 2025-05-27 05:41:11 UTC
The anchor is imported as on page, not as on cell.

If we changed anchor to cell, everything works fine.

It is the same in
Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: a0dd1c4a363b9d4d2a16ff82acc3ada0c075cb65
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Telesto 2025-06-09 12:08:34 UTC
Also in
Version: 7.6.3.0.0+ (X86_64) / LibreOffice Community
Build ID: 35f19e5cb93ce218787904e99c2bedfd40e725cc
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

and in 
Version:  7.0.7

and in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL
Comment 4 Johann Lorber 2025-08-02 09:00:09 UTC
(In reply to BogdanB from comment #2)
> The anchor is imported as on page, not as on cell.
> 
> If we changed anchor to cell, everything works fine.

I'd like to work on this issue. Would you have some code pointers?
I have achieved anchoring the form controls to the cell during the import, but it didn't really solve the issue so I'm thinking I didn't do it right.
Comment 5 Buovjaga 2025-08-03 06:36:12 UTC
(In reply to Johann Lorber from comment #4)
> (In reply to BogdanB from comment #2)
> > The anchor is imported as on page, not as on cell.
> > 
> > If we changed anchor to cell, everything works fine.
> 
> I'd like to work on this issue. Would you have some code pointers?
> I have achieved anchoring the form controls to the cell during the import,
> but it didn't really solve the issue so I'm thinking I didn't do it right.

Maybe submit your code as a WIP patch, so it's easier for others to comment.
Comment 6 Arnaud Versini 2025-08-16 15:32:54 UTC
Sorry to disturb you but the computer service company that employs you has been selected on the basis that they have skills on LibreOffice codebase.

As it's not the case your employer should pay for services to real free software companies with certified developers listed here: https://www.documentfoundation.org/certified-developers/
Comment 7 Johann Lorber 2025-08-16 17:29:54 UTC
(In reply to Arnaud Versini from comment #6)
> Sorry to disturb you but the computer service company that employs you has
> been selected on the basis that they have skills on LibreOffice codebase.
> 
> As it's not the case your employer should pay for services to real free
> software companies with certified developers listed here:
> https://www.documentfoundation.org/certified-developers/

I am a bit confused by your comment, because as far as I know the company that hires me does have people with good skills on the LO codebase. I am just a fairly new hire, still learning and trying my best to gain knowledge on this codebase. Are you really basing your judgement solely on my own interactions here, or do you have some knowledge on my employer that I do not? Either way, the junior developer that I am can't do much about it, and I am personally more interested in solving the issue at hand and getting better at my job.

(In reply to Buovjaga from comment #5)
> (In reply to Johann Lorber from comment #4)
> > (In reply to BogdanB from comment #2)
> > > The anchor is imported as on page, not as on cell.
> > > 
> > > If we changed anchor to cell, everything works fine.
> > 
> > I'd like to work on this issue. Would you have some code pointers?
> > I have achieved anchoring the form controls to the cell during the import,
> > but it didn't really solve the issue so I'm thinking I didn't do it right.
> 
> Maybe submit your code as a WIP patch, so it's easier for others to comment.

I am currently on vacation, I'll be back next week and will submit my WIP patch then.
Comment 8 Arnaud Versini 2025-08-16 18:03:17 UTC
(In reply to Johann Lorber from comment #7)
> (In reply to Arnaud Versini from comment #6)
> > Sorry to disturb you but the computer service company that employs you has
> > been selected on the basis that they have skills on LibreOffice codebase.
> > 
> > As it's not the case your employer should pay for services to real free
> > software companies with certified developers listed here:
> > https://www.documentfoundation.org/certified-developers/
> 
> I am a bit confused by your comment, because as far as I know the company
> that hires me does have people with good skills on the LO codebase. I am
> just a fairly new hire, still learning and trying my best to gain knowledge
> on this codebase. Are you really basing your judgement solely on my own
> interactions here, or do you have some knowledge on my employer that I do
> not? Either way, the junior developer that I am can't do much about it, and
> I am personally more interested in solving the issue at hand and getting
> better at my job.
> 
> (In reply to Buovjaga from comment #5)
> > (In reply to Johann Lorber from comment #4)
> > > (In reply to BogdanB from comment #2)
> > > > The anchor is imported as on page, not as on cell.
> > > > 
> > > > If we changed anchor to cell, everything works fine.
> > > 
> > > I'd like to work on this issue. Would you have some code pointers?
> > > I have achieved anchoring the form controls to the cell during the import,
> > > but it didn't really solve the issue so I'm thinking I didn't do it right.
> > 
> > Maybe submit your code as a WIP patch, so it's easier for others to comment.
> 
> I am currently on vacation, I'll be back next week and will submit my WIP
> patch then.

Hi Johann,

If you have good knowledge of the LibreOffice calc in your company you should not have to ask the community for code pointers, no ? Anyway I'm ok as I said on my blog I'm ok to discuss with your company during the LibreOffice conference in Budapest. If you want to know what's wrong with LibreOffice in your company feel free to see my latest slides https://events.documentfoundation.org/libreoffice-conference-2024/talk/WP7XPU/ and also articles on https://versini.ovh 

Anyway don't feel it's against you, it's of course not.

Btw you should take the ticket and change its status
Comment 9 Johann Lorber 2025-08-16 18:14:03 UTC
I do not have to ask the community no, but isn't an open-source community based on knowledge exchange and helping each other out? Should I bother my coworkers which are busy on many other fields when I could ask the loads of expert present on this forum (isn't it partially why this forum exists)?
I don't know which kind of history you have with my company, but I think you are talking to the wrong person (again, just a junior developer here) and we are definitely having this conversation in the wrong place. I hear your arguments and I will look up the material you sent, but I think if we want to keep this talk going we should go through private channels rather than pollute this forum further.
Comment 10 Arnaud Versini 2025-08-17 02:37:17 UTC
You're not an individual asking help, You're a professional asking support from real experts that have customers too to help you and your company should have this expertise ! Your bug is probably for the french government administration and they pay you to fix the bug, isn't it ? You're saying that people from your company have other things to do so you ask experts from other companies to help you and show you the code ! They also have customers who pay them, and those customers are paying for LibreOffice certified developers.

Should you bother your coworkers instead of the LibreOffice ecosystem for a work paid by Linagora customers ? The answer is yes ! You should remember you're representing your company here...

Linagora is well known for not playing well with free software ecosystem and you're confirming it ! Of course you can ask but they have work to do too for THEIR customers.

Yes it's not the place to talk about that and I'm available on matrix and telegram as well as during libocon.
Comment 11 Johann Lorber 2025-08-17 08:46:13 UTC
(In reply to Arnaud Versini from comment #10)
> Your bug is probably for the french government
> administration and they pay you to fix the bug, isn't it ? 

Nope. And don't worry, you succeeded in turned my away from ever interacting on this forum again. Cheers.
Comment 12 Arnaud Versini 2025-08-17 10:46:08 UTC
Wasn’t my goal, anyway as you want