From 0c448197eca0fa43568d2d28573dc4a607988967 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 16 Jul 2003 07:15:10 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7289 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insettext.C | 20 +++++++------------- src/insets/insettext.h | 2 -- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index bfe7afbfc6..38b6dc9291 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ + +2003-07-16 André Pönitz + + * insettext.C (selectAll): remove + 2003-07-16 John Levon * insetnote.h: diff --git a/src/insets/insettext.C b/src/insets/insettext.C index 3fd0f978a0..d56527f55c 100644 --- a/src/insets/insettext.C +++ b/src/insets/insettext.C @@ -1731,12 +1731,15 @@ void InsetText::setFont(BufferView * bv, LyXFont const & font, bool toggleall, } - if (text_.selection.set()) { + if (text_.selection.set()) setUndo(bv, Undo::EDIT, text_.cursor.par()); - } - if (selectall) - selectAll(bv); + if (selectall) { + text_.cursorTop(); + text_.selection.cursor = text_.cursor; + text_.cursorBottom(); + text_.setSelection(); + } text_.toggleFree(font, toggleall); @@ -2106,15 +2109,6 @@ int InsetText::scroll(bool recursive) const } -void InsetText::selectAll(BufferView * bv) -{ - getLyXText(bv)->cursorTop(); - getLyXText(bv)->selection.cursor = getLyXText(bv)->cursor; - getLyXText(bv)->cursorBottom(); - getLyXText(bv)->setSelection(); -} - - void InsetText::clearSelection(BufferView * bv) { getLyXText(bv)->clearSelection(); diff --git a/src/insets/insettext.h b/src/insets/insettext.h index 623123c966..62db777f94 100644 --- a/src/insets/insettext.h +++ b/src/insets/insettext.h @@ -187,8 +187,6 @@ public: UpdatableInset::scroll(bv, offset); } /// - void selectAll(BufferView * bv); - /// void clearSelection(BufferView * bv); /// Inset * getInsetFromID(int id) const; -- 2.39.2