From 3e2a936b617a9b91c7eba754bcddbb2344056d92 Mon Sep 17 00:00:00 2001 From: John Levon Date: Fri, 21 Jun 2002 00:12:39 +0000 Subject: [PATCH] bug 488 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4449 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/text.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 10c42721ac..f2b4672f2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-06-21 John Levon + + * text.C: stop getWord() at an inset meta char. Not + an ideal solution, but it fixes bug 488 + 2002-05-17 Herbert Voss * lengthcommon.C: diff --git a/src/text.C b/src/text.C index aad37b3505..abe664226d 100644 --- a/src/text.C +++ b/src/text.C @@ -2360,7 +2360,8 @@ void LyXText::getWord(LyXCursor & from, LyXCursor & to, while (to.pos() < to.par()->size() && !to.par()->isSeparator(to.pos()) && !to.par()->isKomma(to.pos()) - && !to.par()->isHfill(to.pos())) + && !to.par()->isHfill(to.pos()) + && !to.par()->isInset(to.pos())) { to.pos(to.pos() + 1); }