Apache OpenOffice (AOO) Bugzilla – Issue 77232
new Chart: Range selection shows deselected range
Last modified: 2017-05-20 11:28:09 UTC
follow up issue for i75307 Take a spreadsheet with some data rows and columns e.g. A1:F6. Now mark A1:F6. Hold Ctrl down and deselect B1:B5.( Not the whole column) Start Chart wizard. Notice, that nothing is shown in the starting preview.
set Keyword
The chart is created from the selected range, but no range string is shown in the data range field of the data range tab page. -> Björn, please have a look.
Looking at lcl_detectRanges() I found out that for a range like this: * * * * * * * * * * * * * is split up like this: A C D A C D A C D A B B/C D I.e., range B consists of two cells which are "in rows", therefore the splitting-direction (DataRowSource) is ambiguous. ->NN: This only appears for a de-selection where you leave just one cell in a column like in the example. It is not a very common example, I think. So, I would only fix this if there is a somewhat obvious fix that does not wreck other places. Maybe range B could be detected to be only one cell, and not yield an ambiguous state in this case, but count as "don't care", because all sub-ranges have "data in columns" and only one is undecided. This is not really ambiguous (in contrast to a complete range that only consists of one cell). Maybe a query like this would solve the situation, once range "B" is only one cell: if( !bRowDiff && !bColDiff ) ++nUndecided; else if( bRowDiff && ! bColDiff ) ++nDataInColumns; else if( bColDiff && ! bRowDiff ) ++nDataInRows; else if( bRowDiff && bColDiff ) bRowSourceAmbiguous = true; if( (nDataInRows > 0 && nDataInColumns) > 0 || nUndecided > 0 ) bRowSourceAmbiguous = true;
move to 3.x target according to http://wiki.services.openoffice.org/wiki/Target_3x
Reset assigne to the default "issues@openoffice.apache.org".