From 3935a1afeeb60e8e9645b81d79aacaf8f90cdd82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Vigna?= Date: Thu, 9 May 2002 12:53:09 +0000 Subject: [PATCH] Revert this change as it sneaked in and wasn't discussed yet. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4146 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insetert.C | 14 +------------- src/insets/insetert.h | 2 -- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/insets/insetert.C b/src/insets/insetert.C index 9f6581e5f5..8471c83579 100644 --- a/src/insets/insetert.C +++ b/src/insets/insetert.C @@ -492,7 +492,7 @@ string const InsetERT::get_new_label() const la += inset.paragraph()->getChar(j); ++i; } - if (inset.paragraph()->next() || (i > 0 && j < p_siz)) { + if (i > 0 && j < p_siz) { la += "..."; } if (la.empty()) { @@ -709,15 +709,3 @@ int InsetERT::getMaxWidth(BufferView * bv, UpdatableInset const * in) const return -1; return w; } - - -void InsetERT::update(BufferView * bv, LyXFont const & font, - bool reinit) -{ - if (inset.need_update & InsetText::INIT || - inset.need_update & InsetText::FULL) - { - setButtonLabel(); - } - InsetCollapsable::update(bv, font, reinit); -} diff --git a/src/insets/insetert.h b/src/insets/insetert.h index 95a41dbf3c..8f8c02d282 100644 --- a/src/insets/insetert.h +++ b/src/insets/insetert.h @@ -134,8 +134,6 @@ public: } /// int getMaxWidth(BufferView *, UpdatableInset const *) const; - /// - void update(BufferView *, LyXFont const &, bool =false); private: /// -- 2.39.5