From e5ec07d51302346f2bd7598de39f8199fd2918d6 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 2 Sep 2007 13:50:37 +0000 Subject: [PATCH] * InsetText::font_: removed, this was not used anywhere. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20000 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetText.cpp | 2 +- src/insets/InsetText.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index bddc386e86..653029844f 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -163,7 +163,7 @@ bool InsetText::metrics(MetricsInfo & mi, Dimension & dim) const TextMetrics & tm = mi.base.bv->textMetrics(&text_); //lyxerr << "InsetText::metrics: width: " << mi.base.textwidth << endl; - font_ = mi.base.font; + // Hand font through to contained lyxtext: text_.font_ = mi.base.font; mi.base.textwidth -= 2 * border_; diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index e9d64a55ab..3f38ae51be 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -158,8 +158,6 @@ public: /// mutable Text text_; /// - mutable Font font_; - /// static int border_; };