Author: rgheck
Date: Thu Jul 22 04:20:12 2010
New Revision: 35001
URL: http://www.lyx.org/trac/changeset/35001
Log:
Partially revert r34995, which broke math output. Not sure why yet....
Modified:
lyx-devel/trunk/src/mathed/InsetMathHull.cpp
lyx-devel/trunk/src/mathed/InsetMathHull.h
Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathHull.cpp Wed Jul 21 23:58:54
2010 (r35000)
+++ lyx-devel/trunk/src/mathed/InsetMathHull.cpp Thu Jul 22 04:20:12
2010 (r35001)
@@ -483,8 +483,7 @@
}
-static docstring latexString(InsetMathHull const & inset,
- bool do_header = true)
+static docstring latexString(InsetMathHull const & inset)
{
odocstringstream ls;
// This has to be static, because a preview snippet or a math
@@ -496,7 +495,7 @@
if (inset.isBufferValid())
encoding = &(inset.buffer().params().encoding());
WriteStream wi(ls, false, true, WriteStream::wsPreview, encoding);
- inset.write(wi, do_header);
+ inset.write(wi);
return ls.str();
}
@@ -1128,14 +1127,12 @@
}
-void InsetMathHull::write(WriteStream & os, bool do_header) const
+void InsetMathHull::write(WriteStream & os) const
{
ModeSpecifier specifier(os, MATH_MODE);
- if (do_header)
- header_write(os);
+ header_write(os);
InsetMathGrid::write(os);
- if (do_header)
- footer_write(os);
+ footer_write(os);
}
@@ -1892,7 +1889,7 @@
}
case BufferParams::LaTeX: {
string const tag = (getType() == hullSimple) ? "span" : "div";
- docstring const latex = latexString(*this, false);
+ docstring const latex = latexString(*this);
// class='math' allows for use of jsMath
// http://www.math.union.edu/~dpvc/jsMath/
// FIXME XHTML
Modified: lyx-devel/trunk/src/mathed/InsetMathHull.h
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathHull.h Wed Jul 21 23:58:54 2010
(r35000)
+++ lyx-devel/trunk/src/mathed/InsetMathHull.h Thu Jul 22 04:20:12 2010
(r35001)
@@ -105,7 +105,7 @@
bool idxLast(Cursor &) const;
///
- void write(WriteStream & os, bool do_header = true) const;
+ void write(WriteStream & os) const;
///
void mathmlize(MathStream &) const;
///