]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.C
cosmetic fix
[lyx.git] / src / metricsinfo.C
index 78c251b7d7912a8974c57dde436ee28d758c6c14..1202520b80e97eb7b2e2c62739aa6f4397408962 100644 (file)
 
 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)
 {}
 
 
@@ -27,8 +27,8 @@ MetricsInfo::MetricsInfo()
 {}
 
 
-MetricsInfo::MetricsInfo(BufferView * bv, LyXFont const & font)
-       : base(bv, font)
+MetricsInfo::MetricsInfo(BufferView * bv, LyXFont const & font, int textwidth)
+       : base(bv, font, textwidth)
 {}
 
 
@@ -149,7 +149,6 @@ WidthChanger::WidthChanger(MetricsBase & mb, int w)
        :       Changer<MetricsBase>(mb)
 {
        save_ = mb;
-       mb.restrictwidth = true;
        mb.textwidth     = w;
 }