From 529603f179126e43d62424771b74427ca4030a08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Vigna?= Date: Tue, 26 Feb 2002 11:55:31 +0000 Subject: [PATCH] Force a SELECTION update if we had a selection and we passed the event down to the inset (fix #213). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3587 a592a061-630c-0410-9148-cb99ea01b6c8 --- po/POTFILES.in | 1 + src/insets/ChangeLog | 5 +++++ src/insets/insettabular.C | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index 3570609547..5585e5ec15 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -9,6 +9,7 @@ src/converter.C src/CutAndPaste.C src/debug.C src/exporter.C +src/ext_l10n.h src/figure_form.C src/figureForm.C src/FontLoader.C diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 7a27058887..93886fcd60 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2002-02-26 Juergen Vigna + + * insettabular.C (localDispatch): force a SELECTION update if we + had a selection and we passed the event down to the inset (fix #213) + 2002-02-22 Juergen Vigna * insettext.C (insetUnlock): set the cursor to the second paragraph diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index d21030ee98..6230440d28 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -534,7 +534,7 @@ void InsetTabular::update(BufferView * bv, LyXFont const & font, bool reinit) need_update = INIT; break; case SELECTION: - need_update = INIT; + need_update = FULL; break; default: break; @@ -612,7 +612,7 @@ void InsetTabular::insetUnlock(BufferView * bv) void InsetTabular::updateLocal(BufferView * bv, UpdateCodes what, - bool mark_dirty) const + bool mark_dirty) const { if (what == INIT) { LyXFont font; @@ -1204,6 +1204,9 @@ InsetTabular::localDispatch(BufferView * bv, kb_action action, return UNDISPATCHED; } else if (hs) { clearSelection(); + // so the below CELL is not set because this is higher + // priority and we get a full redraw + need_update = SELECTION; } nodraw(false); updateLocal(bv, CELL, false); -- 2.39.2