Author: rgheck
Date: Wed Jan 12 14:50:46 2011
New Revision: 37185
URL: http://www.lyx.org/trac/changeset/37185
Log:
Complete fix for bug #7225.
Modified:
lyx-devel/trunk/src/mathed/InsetMathHull.cpp
Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathHull.cpp Wed Jan 12 14:40:47
2011 (r37184)
+++ lyx-devel/trunk/src/mathed/InsetMathHull.cpp Wed Jan 12 14:50:46
2011 (r37185)
@@ -2038,8 +2038,18 @@
{
BufferParams::MathOutput const mathtype =
buffer().params().html_math_output;
-
+
bool success = false;
+
+ // we output all the labels just at the beginning of the equation.
+ // this should be fine.
+ for (size_t i = 0; i != label_.size(); ++i) {
+ InsetLabel const * const il = label_[i];
+ if (!il)
+ continue;
+ il->xhtml(xs, op);
+ }
+
// FIXME Eventually we would like to do this inset by inset.
if (mathtype == BufferParams::MathML) {
odocstringstream os;