Issue 118862

Summary: Writer: Find&Replace fails for single-replacement if text is selected
Product: Writer Reporter: hdu <hdu>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3    
Version: 3.4.0 Beta (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description hdu@apache.org 2012-02-01 11:17:34 UTC
1) select some text in Writer (e.g. "ABCDEF")
2) open the Search&Replace dialog
3) enter a search string that matches the selected text somewhere (e.g. "CD")
4) enter a replacement string e.g. "XX"
5) click the "Replace" button
=> the whole selection gets replaced, not just the match!
e.g. the resulting text is "XX" whereas it should be "ABXXEF"

Notes:
- the checkbox "Current Selection Only" doesn't impact the bug
- the checkbox "Regular Expression" doesn't impact the bug
- "Replace All" works fine (for some reasons that button is only enabled when the "Search Notes" checkbox is disabled)
Comment 1 hdu@apache.org 2012-02-01 11:18:47 UTC
Reproducible on OOo, AOO and downstream code.