Apache OpenOffice (AOO) Bugzilla – Issue 9059
OO.writer loops with "enabled cursor in protected cells" in tables
Last modified: 2013-08-07 14:42:08 UTC
I use tables in my documents in OO.writer. I use cell protection for some ot the cells. Whenever I disable the 'cursor in protected areas' option for cells that I have added protection, save the doc then re-open the doc., OO.writer freezes, cpu goes to 100%. I have duplicated this on a Win32 box with OO.org 1.0.1 & several GNU/Linux distros running OO.org 1.0.1. 1. Starting in OO.writer, create a table, then protect some of the cells, 'Main Toolbar>Format>Cells>protect'. 2.The 'cursor in protected areas option is located: ' Main Toolbar > Options > Text Document > Formatting Aids > cursor in protected areas' 3. Save the doc then re-open.
Bug Replicated on: OpenOffice version: 643C Os: Windows 2000 5.00.2195 Service Pack 2 Platform: PC The steps needed to replicate this bug are as follows:- 1. Open the Openoffice writer and draw a table of some size say 4 x 5 2. Using the mouse select some of the cells in the table. 3. Go to Format menu, then Cells and Click on Protect. 4. Now go to Tools->Options->Text Documents->Formatting Aids and ensure that the "Cursor in protected Areas" is not enabled. 5. Save the document with a name and close it. 6. Reopen the document again. We find that the openoffice freezes at this point when we are reopening or sometimes when we save the document itself. It would be interesting to carry out the following follow-up test: · Open a file of a different format such as Microsoft Word which has tables in it. In that table make some cells protected and disable the cursor in these cells. Save the file and reopen it. See if this can be successfully done. Or one can also draw some tables in a MS Word file that is opened using openoffice and carry out the above test.
I do not have MS Office :( I tried using a MS Word doc, creating a table and duplicating my procedure. This doesn't work as OO.writer does not save the cell protection formatting when saving in MS word format. At least in my test the cell protection was gone when I re-opened the MS Word doc,(in OO.writer) hence no freezing problem. Just curious though, what does MS Word have to do with this ?
I have installed the new version of OO.og, 1.0.2. This issue still exists. Is this an issue that you can verify, am I doing something fundamentally wrong with my prodedure ? I create forms for collecting data. the forms are a full page of tables. The fact that I cannot disable the cursor in protected cells means that I have to tab or use a mouse to enter data into the unprotected cells. This is a big time waster when there ar many pages and a couple of hunded cells on each page, of which maybe half of the cells have fixed data and can be protected enabling (theoretically) a tab to find the first unprotected cell. Unfortuneately for me this is my main use for OO.org. Ootherwise it is a great contribution to the community. Thank you Greg madden
I have tried release Beta 1.1x. This issue is still present. I am not sure how this Issue tracking system works but it appears that the issue is listed as unconfirmed. Reading through the replies on this issue it appears that sba@openoffice.org did replicate this bug.
Duplicated with OOo1.1beta2 on windows 2000. Confirming
I made it in a 645m5 without reloading the document: Protect cells, Leave Cursor in protected cells, uncheck "Cursor allowed in protected area" in tools-options - Loop. Problem seems to be the cursor standing in a protected cell where it is not supposed to be. Reassigned to Henning.
for the time being
Fixed in sw017; this should still make it into OOo 1.1 Changed: sw/source/core/crsr/crsrsh.cxx, v1.28.12.1 dvo->os: Please review the fix. In SwCrsrShell::FindValidCntntNode was previously a comment ('What about tables?'), but no logic to remove a cursor from a protected area if cursors in protected areas are not allowed. I now put in logic which moves forward to a non-protected area, and backwards if going forwards didn't work.
dvo: Fix reviews by OS.
dvo->sba: Works in sw017. Please fix and close. :-)
Took over grom SBA.
Checked fix with internal CWS sw017.
Fix verified. Will be available in OO 1.1.
Fixed in RC4.