Ask Your Question

Cell Change Event in Libreoffice gets called twice

asked 2020-07-30 16:40:40 +0200

Harish gravatar image

I am trying to use XModifyListener class to listen to cell change Events for LibreOffice Calc.My problem is :: When a user modifies a cell, the event is getting triggered twice.public void modified(EventObject event)  is getting called twice in my code.I have to perform custom tasks in a cell change event and I end up doing it twice which is leading to errors for me. Can you please help me to solve this issue. PS: Registering for the events is done only once. I have cross verified this and this is not an issue.  xModifyBroadcaster.addModifyListener(xModifyListener) - the code to register for the change event is called only once and hence no issues there.

edit retag flag offensive close merge delete



Post your code.

Lupp gravatar imageLupp ( 2020-07-30 20:16:35 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2020-08-17 17:53:55 +0200

Harish gravatar image

The solution was to use XModifyBroadcaster with the cellRange rather than the whole document.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-07-30 16:40:40 +0200

Seen: 67 times

Last updated: Aug 17 '20