set boundary when setting cursor with mouse (bug 3310)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18556 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-05-29 09:09:02 +00:00
parent 8aa2ea28bc
commit 8140cf0e4f
3 changed files with 14 additions and 6 deletions

View File

@ -354,6 +354,7 @@ void BufferView::mouseSetCursor(LCursor & cur)
//lyxerr << "5 cur after" << dit <<std::endl; //lyxerr << "5 cur after" << dit <<std::endl;
cursor().setCursor(dit); cursor().setCursor(dit);
cursor().boundary(cur.boundary());
cursor().clearSelection(); cursor().clearSelection();
cursor().setTargetX(); cursor().setTargetX();
finishUndo(); finishUndo();

View File

@ -1,3 +1,8 @@
2007-05-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* BufferView.C (mouseSetCursor): do not forget to set boundary
(bug 3310). Fix by Stefan Schimanski.
2007-05-18 Jürgen Spitzmüller <j.spitzmueller@gmx.de> 2007-05-18 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* text3.C (specialChar): add missing recordUndo. * text3.C (specialChar): add missing recordUndo.

View File

@ -27,7 +27,7 @@ What's new
* DOCUMENTATION AND LOCALIZATION * DOCUMENTATION AND LOCALIZATION
- update Hungarian and Italian localizations of the interface. - Update Hungarian and Italian localizations of the interface.
** Bug fixes: ** Bug fixes:
@ -37,23 +37,25 @@ What's new
- Don't skip lines after noweb chunks in tex2lyx (bug 3052) - Don't skip lines after noweb chunks in tex2lyx (bug 3052)
- fix bug when entering relative length (like page%) as margin - Fix bug when entering relative length (like page%) as margin
settings (bug 3416). settings (bug 3416).
- Fix Date external template in windows (bug 3241) - Fix Date external template in windows (bug 3241)
* USER INTERFACE: * USER INTERFACE:
- fix bug where moving the last section up in the toc dialog eats the - Fix bug where moving the last section up in the toc dialog eats the
last paragraph (bug 3303). last paragraph (bug 3303).
- fix crash when using "all-insets-toggle" lfun on a file with - Fix crash when using "all-insets-toggle" lfun on a file with
math insets (bug 3358). math insets (bug 3358).
- fix crash when undoing ctrl-<minus> in mathed (bug 3590). - Fix crash when undoing ctrl-<minus> in mathed (bug 3590).
- Handle undo correctly when inserting a plain text file (bug 3204). - Handle undo correctly when inserting a plain text file (bug 3204).
- Fix misplaced cursor when clicking at the end of a line (bug 3310).
- Make it possible to reset itemize bullets to their original state - Make it possible to reset itemize bullets to their original state
(bug 3312). (bug 3312).
@ -92,6 +94,6 @@ What's new
* MISCELLANEOUS * MISCELLANEOUS
- make LyX/Mac recognize correctly newer versions of teTeX. - Make LyX/Mac recognize correctly newer versions of teTeX.
- Fix that Slovak userguide couldn't be typeset. - Fix that Slovak userguide couldn't be typeset.