As mentioned in bug 36158
in dialog box Find & Replace, "Notes" should be replaced by "Comments", but I will use "Notes" in this report.
- create a new document
- insert some text, at least one character
- select some text (all or not)
- menu Edit > Find & Replace
- in "Search for", insert some text that does not exist in your document
- in "Replace with", type whatever you want (or nothing)
- open "More options" and select "Notes" (other options may be or not checked)
- click Replace
=> every word, whatever was selected and whatever was asked for "Search for", is replaced
However, no text is found when click on Find
Same bug with OOo 3.3.0
I have reproduced it on LibO 3.5 under Ubuntu. However the option "Notes" does not even need to be checked.
I will have a look into it before the end of the week,
We are group of 3 students from Vietnam. This is our first time working with LibreOffice. Therefore, we are trying to do easy hacks in order to get familiar with source code. We will try to work on this bug from now till July 20th.
I have forgotten to change the status of this bug to assign. As I mentionned into my previous comment : "I will have a look into it before the end of the week".
We are at the end of the week, and I have resolved it and will submit my first patch (that is why I was looking for easy hacks).
I really hope you will get this message before going any further.
(In reply to comment #2)
> We are group of 3 students from Vietnam. This is our first time working with
> LibreOffice. Therefore, we are trying to do easy hacks in order to get familiar
> with source code. We will try to work on this bug from now till July 20th.
> Best regards,
Created attachment 48624 [details]
Please find in attachment the patch for the bug 36181.
While using "Replace" in the "Find&Replace" dialog of writer, the selected text was always replaced even if it does not match the searched string.
Check that the selected text is the search string, otherwise select the first occurence if any.
This is my first contribution to LibreOffice, therefore please feel confortable to give me advices, remarks, ...
oups ... I have forgotten to indicate it as resolved in my previous comments...
Excellent: thanks for this: Now pushed as
and my own stab at an additional fix at
Migrating Whiteboard tags to Keywords: (EasyHack)