Issue 98032

Summary: Crash on find and replace when setting format settings while the cursor is in protected section
Product: Writer Reporter: florianw <oldmcweb>
Component: editingAssignee: Oliver Specht <os_ooo>
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P2 CC: issues, stefan.baltzer
Version: OOO300m9Keywords: crash
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
A test file where the problem was recognized none

Description florianw 2009-01-13 14:45:58 UTC
I have generated an Index out of my document.
I'd like to find an replace some words with format.
So for example I search vor the string "openoffice" and replace it with
"openoffice" in italic.
If my cursor points on the index and I try to set the format OpenOffice crashes.
This is reproduce able !

Step by Step:
1. klick on the index so that the cursor is in it.
2. press ctrl+f and insert the search criteria and the replace string
3. Klick on the format button...*Crash*

I first noticed it in the Ubuntu Package...but there is an older version ....so
I tried it on WinVista with ooo300m9 and get the same result on an different
machine ...

Thaks
Florian
Comment 1 florianw 2009-01-13 14:47:29 UTC
Created attachment 59353 [details]
A test file where the problem was recognized
Comment 2 eric.savary 2009-01-13 15:55:07 UTC
Good catch!

@OS: while cursor in any protected section:
- Ctr+f
- enter Find string
- enter Replace string
- click [More options >>]
- click [Format...]
-> crash

Happens also in 2.4.1
Comment 3 Oliver Specht 2009-06-15 13:40:39 UTC
Fixed in cws os132 in 
svx/source/dialog/srchdlg.cxx 
the text is not replaced in protected sections but the attributes are applied
this is fixed in 
sw/source/ui/uiview/viewsrch.cxx
Comment 4 stefan.baltzer 2010-11-15 13:37:55 UTC
This one is missing in the issue list of CWS os132. But the respective file
change log mentions this issue. However, verified in OOO330_m15 (OOo 3.3 RC5).
Comment 5 stefan.baltzer 2010-11-15 13:39:47 UTC
OK in DEV300_m92, too. Closed.