Hello, As mentioned in bug 36158 https://bugs.freedesktop.org/show_bug.cgi?id=36158 in dialog box Find & Replace, "Notes" should be replaced by "Comments", but I will use "Notes" in this report. To reproduce: - 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
Hello, 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, Best Regards, Benoit
Hi, 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, tatung
Hi, 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. Best Regards, Benoit. (In reply to comment #2) > Hi, > > 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, > tatung
Created attachment 48624 [details] Patch Hi, Please find in attachment the patch for the bug 36181. Bug: 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. Correction: 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, ... Best Regards,
oups ... I have forgotten to indicate it as resolved in my previous comments...
Excellent: thanks for this: Now pushed as http://cgit.freedesktop.org/libreoffice/writer/commit/?id=fe29981d4a0400600ee9ee86f0d182121d6e3fad and my own stab at an additional fix at http://cgit.freedesktop.org/libreoffice/writer/commit/?id=68a014dbca8bbd25056f75ef551fb81a0dbfb1b7
Migrating Whiteboard tags to Keywords: (EasyHack) [NinjaEdit]