Bug 36181 - EasyHack: Replace with "Notes" option doesn't work with text selected
Summary: EasyHack: Replace with "Notes" option doesn't work with text selected
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: Other All
: medium normal
Assignee: benoit.dolives
URL:
Whiteboard:
Keywords: easyHack
Depends on:
Blocks:
 
Reported: 2011-04-12 13:18 UTC by Laurent Balland
Modified: 2015-12-18 10:00 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Patch (4.43 KB, patch)
2011-06-30 16:10 UTC, benoit.dolives
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Balland 2011-04-12 13:18:35 UTC
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
Comment 1 benoit.dolives 2011-06-25 03:15:01 UTC
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
Comment 2 tatung 2011-06-30 00:16:04 UTC
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
Comment 3 benoit.dolives 2011-06-30 15:40:31 UTC
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
Comment 4 benoit.dolives 2011-06-30 16:10:35 UTC
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,
Comment 5 benoit.dolives 2011-06-30 16:14:56 UTC
oups ... I have forgotten to indicate it as resolved in my previous comments...
Comment 7 Robinson Tryon (qubit) 2015-12-18 10:00:22 UTC
Migrating Whiteboard tags to Keywords: (EasyHack)
[NinjaEdit]