Issue 9059 - OO.writer loops with "enabled cursor in protected cells" in tables
Summary: OO.writer loops with "enabled cursor in protected cells" in tables
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2002-11-07 20:54 UTC by gomadtroll
Modified: 2013-08-07 14:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description gomadtroll 2002-11-07 20:54:39 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.
Comment 1 Unknown 2002-11-27 22:44:55 UTC
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.  

Comment 2 gomadtroll 2002-11-28 06:06:04 UTC
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 ? 
Comment 3 gomadtroll 2003-01-21 23:14:01 UTC
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


Comment 4 gomadtroll 2003-04-20 18:56:28 UTC
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.  
Comment 5 jensja 2003-06-04 01:42:54 UTC
Duplicated with OOo1.1beta2 on windows 2000.

Confirming
Comment 6 stefan.baltzer 2003-06-13 16:00:55 UTC
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.
Comment 7 openoffice 2003-06-17 17:29:15 UTC
for the time being
Comment 8 openoffice 2003-06-18 16:01:56 UTC
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.
Comment 9 openoffice 2003-06-19 15:48:32 UTC
dvo: Fix reviews by OS.
Comment 10 openoffice 2003-06-19 17:50:15 UTC
dvo->sba: Works in sw017. Please fix and close. :-)
Comment 11 michael.ruess 2003-06-20 11:15:47 UTC
Took over grom SBA.
Comment 12 michael.ruess 2003-06-20 11:29:59 UTC
Checked fix with internal CWS sw017.
Comment 13 michael.ruess 2003-06-20 11:30:26 UTC
Fix verified.
Will be available in OO 1.1.
Comment 14 michael.ruess 2003-09-19 09:46:24 UTC
Fixed in RC4.