Issue 118862 - Writer: Find&Replace fails for single-replacement if text is selected
Summary: Writer: Find&Replace fails for single-replacement if text is selected
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 3.4.0 Beta (OOo)
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-01 11:17 UTC by hdu@apache.org
Modified: 2013-01-23 01:39 UTC (History)
0 users

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 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.