]> git.lyx.org Git - features.git/commit
Fix bug 2068 and do some cleanup
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 16 Aug 2006 21:12:20 +0000 (21:12 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 16 Aug 2006 21:12:20 +0000 (21:12 +0000)
commita7724370542f606b15b9350c1eeaaf4fcb356bd9
tree793dbe6e7074e24612edc5dd4fb8d40349763ae7
parentbc6cf52e9f37549f1d86505b0ae2d4c83e8844cb
Fix bug 2068 and do some cleanup

* src/CutAndPaste.C (setSelectionRange, replaceWord): remove.
(replaceSelectionWithString): select the new string after
replacement; add a bool parameter indicating in which sense the
selection is made.

* src/lyxfind.C (replace): adapt to above changes.
(find): comment out debug message.

* src/frontends/controllers/ControlSpellchecker.C (isLetter):
rename parameter.
(nextWord): take a LCursor as parameter; set the selection over
the word that has been found.
(check): adapt to changes above (the length of the word is not
necessarily the length of the selection -- fixes bug 2068).
(replace): use cap::replaceSelectionWithString

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14708 a592a061-630c-0410-9148-cb99ea01b6c8
src/CutAndPaste.C
src/CutAndPaste.h
src/frontends/controllers/ControlSpellchecker.C
src/lyxfind.C