Apache OpenOffice (AOO) Bugzilla – Issue 64495
new chart: wrong selection after arranging series
Last modified: 2013-02-24 21:18:40 UTC
In the new chart module, when you select a series and re-arrange it, you lose the "focus". For example, in the attached file below : - double-click on the diagram and select a series for example the A series (you should then see small green points on the columns). - click right and try to re-arrange the A series (arrangement > bring backward/forward). - The selection is then lost, and the series A is no more selected ! You have to click back on it for the selection to appear again.
Created attachment 35794 [details] File to test the issue
->IHA: As discussed to you.
Why doesn't Issuezilla parse the comment and find out what I wanted to do ... ;-)
accepted
changed summary to start with 'new chart: '
Changed target to 2.x
changed prio
changed summary
Shouldn't this be solved before 2.3?
hint for development: look at the method ChartController::executeDispatch_MoveSeries: The selection is indicated by an identifier and stored in m_aSelection. This identifier is index based for series thus the wrong series is reselected when the index changes. So an adapted identifier must be created and set using the changed index. The class for handling this identifier stuff is 'ObjectIdentifier'. Consider to use the method 'createParticleForSeries' or implement a new method to create a series identifier for a given XDataSeries.
Hi iha & bm, The final attached is the patch of this issue. :-) Best regards, Weizhao
Created attachment 47532 [details] patch
Taking over
->weiz: Thanks for the excellent patch! (One nitpick: the UndoGuardWithSelection had a "LiveUpdate" in its name although it wasn't for LiveUpdate, changed that) I applied the patch to CWS chart11. Note: I had to adapt the undo stuff to the new XUndoManager interface introduced in chart11.
adapting target
Correction of the prior note: XUndoManager was introduced already with chart07, so it is in the m223 master.
->kla: Please verify in CWS chart11
Seen ok in CWS chart11 -> verified
Seen ok in current master -> closed