Hi Caolán, all, Thanks for your review. The patch is indeed under LGPLv3+/MPL license.
I will have a look to your additional patch as soon as possible, thanks a lot. I indeed saw some troubles with the current "search and replace" mechanism of writer. For example the "Find in selection" is not working properly : if you select a text after having opened the "search and replace" dialog, this text will not be taken in account by the "Find in selection", and some others bugs. I intend to work on it, patch after patch after ... Cheers, Benoit 2011/7/4 Caolán McNamara <caol...@redhat.com> > On Sun, 2011-07-03 at 23:07 +0200, Benoit Dolives wrote: > > Yup, patch fixes fixes the problem. Thanks for this. Pushed now to > master. > > Can you confirm that this is under our preferred LGPLv3+/MPL license > combo ? > > > Concerning your open question, the proposed patch checks if the > > searched string belongs to the selection by using the same mechanism > > as the common search command. Therefore it should have the same > > behaviour as the search command in both cases (common or advanced > > search/replace). > > Hmm, if I stick e.g. Apple banana in there, select nothing, search and > replace with regular expression of b.*a to match banana but where the > search string has a different length to the text it will match, with > "comments" enabled, then that one doesn't replace. > > AFAICS that "length is the same" branch is just an optimization. When > removed everything works as I would expect, so I pushed that as a follow > up fix. > > Would be good if you could double-check my changes there, and if the > equal length code is based on some other code elsewhere, there might be > an additional fix needed for the legacy stuff too. > > There's probably a few more gotchas with search and replace in writer, > (e.g. how come I can't use "replace all" when comments are selected) if > you dig around bugzilla for them :-) > > C. > > > -- Benoit Dolives
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice