]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exintinset.C
try to fix rounding errors
[lyx.git] / src / mathed / math_exintinset.C
index 81e6b8398049e5a14aa87ee218af9a3c415b6da1..e26a74e6b69890d8e0a40749839bafab48e96e19 100644 (file)
@@ -7,7 +7,7 @@
 #include "math_symbolinset.h"
 #include "debug.h"
 
-#include <boost/smart_ptr.hpp>
+#include <boost/scoped_ptr.hpp>
 
 using std::endl;
 
@@ -44,19 +44,19 @@ bool MathExIntInset::hasScripts() const
 
 void MathExIntInset::normalize(NormalStream & os) const
 {
-       os << '[' << symbol_ << ' ' << cell(0) << ' ' << cell(1) << ' ' 
+       os << '[' << symbol_ << ' ' << cell(0) << ' ' << cell(1) << ' '
           << cell(2) << ' ' << cell(3) << ']';
 }
 
 
-void MathExIntInset::metrics(MathMetricsInfo const &) const
+void MathExIntInset::metrics(MathMetricsInfo &) const
 {
        lyxerr << "should not happen" << endl;
 }
 
 
-void MathExIntInset::draw(Painter &, int, int) const
-{  
+void MathExIntInset::draw(MathPainterInfo &, int, int) const
+{
        lyxerr << "should not happen" << endl;
 }
 
@@ -66,7 +66,7 @@ void MathExIntInset::maplize(MapleStream & os) const
        os << symbol_ << '(';
        if (cell(0).size())
                os << cell(0);
-       else 
+       else
                os << '1';
        os << ',' << cell(1);
        if (hasScripts())
@@ -80,7 +80,7 @@ void MathExIntInset::mathmlize(MathMLStream & os) const
        boost::scoped_ptr<MathSymbolInset> sym(new MathSymbolInset(symbol_));
        //if (hasScripts())
        //      mathmlize(sym, os);
-       //else 
+       //else
                sym->mathmlize(os);
        os << cell(0) << "<mo> &InvisibleTimes; </mo>"
           << MTag("mrow") << "<mo> &DifferentialD; </mo>"
@@ -92,4 +92,3 @@ void MathExIntInset::write(WriteStream &) const
 {
        lyxerr << "should not happen" << endl;
 }
-