Apache OpenOffice (AOO) Bugzilla – Issue 117461
GridControl: Illegal part of row entries is shown after the addRows
Last modified: 2017-05-20 09:32:16 UTC
procedure to reproduce the bug on the attached document: - open the attached document and push button to show the dialog => dialog having a grid control and some buttons is shown - push "Add rows" button two times => 10 rows are added and now vertical scrollbar is shown on the grid control - scroll down to the bottom of the rows with the scroll bar - push "Remove All" button => all rows are removed, row count is 0 when "Row Count" button is pushed - push "Add rows" button => only two rows are shown but row count button shows 5 rows are added - push "Add rows" button => vertical scroll bar has been shown and now I can scroll up to the first row
Created attachment 76146 [details] including a macro to reproduce the problem
getting rid of value "enhancement" for field "severity". For enhancement the field "issue type" shall be used.
Created attachment 78436 [details] Proposed patch to fix this problem m_nTopRow should be set to 0 when not m_nRowCount > 0. And additional else statement is required when m_nCurRow is ROW_INVALID, this is happened after all rows are removed.
patch reviewed, built and tested on trunk revision 1353565