MetricsBase::MetricsBase()
: bv(0), font(), style(LM_ST_TEXT), fontname("mathnormal"),
- restrictwidth(false), textwidth(0)
+ textwidth(0)
{}
-MetricsBase::MetricsBase(BufferView * b, LyXFont const & f)
+MetricsBase::MetricsBase(BufferView * b, LyXFont const & f, int w)
: bv(b), font(f), style(LM_ST_TEXT), fontname("mathnormal"),
- restrictwidth(false), textwidth(0)
+ textwidth(w)
{}
{}
-MetricsInfo::MetricsInfo(BufferView * bv, LyXFont const & font)
- : base(bv, font)
+MetricsInfo::MetricsInfo(BufferView * bv, LyXFont const & font, int textwidth)
+ : base(bv, font, textwidth)
{}
: Changer<MetricsBase>(mb)
{
save_ = mb;
- mb.restrictwidth = true;
mb.textwidth = w;
}