Issue 56449 - Find&Replace in selection replaces whole selection with replacement string
Summary: Find&Replace in selection replaces whole selection with replacement string
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 2.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 74707 (view as issue list)
Depends on:
Blocks:
 
Reported: 2005-10-22 16:03 UTC by jancs
Modified: 2017-05-20 11:18 UTC (History)
4 users (show)

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


Attachments
Simple table to show find/replace misbehaviour (6.37 KB, application/vnd.sun.xml.writer)
2005-10-23 02:05 UTC, azagtoth
no flags Details
Example Text Doc With Table (7.13 KB, application/vnd.oasis.opendocument.text)
2005-10-23 17:44 UTC, roweezy
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jancs 2005-10-22 16:03:51 UTC
Find&Replace in selection replaces whole selection with replacement string
(actully - substing existing in some of the words) - if i select a column of
table, open F&R dialog, enter the stings to search for and replace with and
press Replace, i get the whole column full of replace with strings (original
text is replaced in whole).
If Replace all is pressed, all goes as expected - but in that case step by step
replacement is not possible.
Comment 1 azagtoth 2005-10-23 02:02:57 UTC
Same here.

To Reproduce, repeat steps 1)-5) two times, using 5a) and 5b) resp.:
1) Open attached text document (containing 2x2 table)
2) Select the first column
3) In the Edit Menu choose Find&Replace (or press ^F)
4) Insert "2" as text to search, Insert "44" as text to replace with
5a) Press "Replace"
5b) Press "Replace All"

Results with 5a)
The text in both fields of the selected column gets replaced with "44".

Results with 5b)
The Message "Search key not found." is displayed, not replacements are done.

Behaviour in 5a) is wrong. Should be the same as in 5b).
Comment 2 azagtoth 2005-10-23 02:05:16 UTC
Created attachment 30729 [details]
Simple table to show find/replace misbehaviour
Comment 3 roweezy 2005-10-23 17:41:03 UTC
Confirmed

Using Win XP Pro SP2 OOo 2.0.0 final and attached file (OOo 1.1 Text 
Document), same results when using a new OpenDocument Text file.

However, your description is not clear and there is more to the defect. Step 2 
should be "Select the first row". Rows are horizontal, columns are vertical.
This is irrelevant however, since it does not matter which row is selected. 
For all rows selected, if one of the cells has the search string, every cell 
(that has data in it) in that selection changes to the replace string. I 
consider this an embarrassing defect, and strongly recommend it fixed in 
2.0.1. I have attached a file that can be used to illustrate the defect. 
Select the whole Table, and use the search string "a" and replace string "00" 
(both without quotes).

The Replace All feature is not defected.
Comment 4 roweezy 2005-10-23 17:44:07 UTC
Created attachment 30746 [details]
Example Text Doc With Table
Comment 5 michael.ruess 2005-10-24 07:32:51 UTC
Reassigned to SBA.
Comment 6 roweezy 2005-10-26 14:05:22 UTC
Recommending fix at milestone 2.0.1
Comment 7 jack.warchold 2005-11-03 13:03:18 UTC
confirmed on src680_m135
set target OOo2.0.2
lowered prio to P3
reassigned to os

workarround, just press find all bevor pressing replace
Comment 8 stefan.baltzer 2007-02-23 15:56:18 UTC
*** Issue 74707 has been marked as a duplicate of this issue. ***
Comment 9 stefan.baltzer 2007-02-23 16:08:23 UTC
SBA: Though this is not broken, 
(1) this is a trap far too easy to run into 
(2) in a dialog I expect average users to use frequently.
Set target to OOo 2.3.
Comment 10 jian.li 2007-04-19 03:00:51 UTC
The similar problem also happens when do "Find" and "Find All".
1) Open attached text document (containing 2x2 table)
2) Select the first column
3) In the Edit Menu choose Find&Replace (or press ^F)
4) Insert "1" as text to search
5a) Press "Find"
5b) Press "Find All"

Results with 5a)
Writer can only find "1" in the first cell.

Results with 5b)
"1" in all selected cells can be found.

Behaviour in 5a) is wrong. Should be the same as in 5b).
Comment 11 Oliver Specht 2007-07-02 08:40:28 UTC
Re-target to 2.x
Comment 12 Martin Hollmichel 2007-09-10 13:37:01 UTC
move target to 3.x according http://wiki.services.openoffice.org/wiki/Target_3x
Comment 13 kpalagin 2008-12-18 10:37:53 UTC
Any chnace for 3.2?
Comment 14 Marcus 2017-05-20 11:18:10 UTC
Reset assigne to the default "issues@openoffice.apache.org".