]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.C
fix reading the author field.
[lyx.git] / src / metricsinfo.C
index 0175f0e7b2e5b7dc27b50874b0ea0c3c0f3d7d2c..b0bb7c7864073765eb8c29a710d49fd1f279d6d3 100644 (file)
 
 #include <config.h>
 
+#include "BufferView.h"
+#include "LColor.h"
 #include "metricsinfo.h"
+
 #include "mathed/math_support.h"
+
 #include "frontends/Painter.h"
-#include "BufferView.h"
-#include "LColor.h"
+
+#include <boost/assert.hpp>
 
 using std::string;
 
@@ -25,7 +29,6 @@ MetricsBase::MetricsBase()
 {}
 
 
-
 MetricsBase::MetricsBase(BufferView * b, LyXFont const & f, int w)
        : bv(b), font(f), style(LM_ST_TEXT), fontname("mathnormal"),
          textwidth(w)
@@ -43,8 +46,8 @@ MetricsInfo::MetricsInfo(BufferView * bv, LyXFont const & font, int textwidth)
 
 
 
-PainterInfo::PainterInfo(BufferView * bv, Painter & pa)
-       : pain(pa)
+PainterInfo::PainterInfo(BufferView * bv, Painter & painter)
+       : pain(painter), ltr_pos(false)
 {
        base.bv = bv;
 }
@@ -118,7 +121,8 @@ ShapeChanger::~ShapeChanger()
 StyleChanger::StyleChanger(MetricsBase & mb, Styles style)
        :       Changer<MetricsBase>(mb)
 {
-       static const int diff[4][4]  = { { 0, 0, -3, -5 },
+       static const int diff[4][4] =
+         { { 0, 0, -3, -5 },
                                         { 0, 0, -3, -5 },
                                         { 3, 3,  0, -2 },
                                         { 5, 5,  2,  0 } };