+2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * math_macro.C (draw): add .c_str() to .str() (useful when
+ compiling with lyxstring, but STL sstream).
+ (Metrics): ditto.
+
2001-02-08 Andre Poenitz <poenitz@HTWM.De>
- * several files: get rid of reinterpret_cast
+ * several files: get rid of reinterpret_cast.
2001-02-04 Allan Rae <rae@lyx.org>
else {
std::ostringstream ost;
ost << '#' << number;
- drawStr(pain, LM_TC_TEX, size, x, baseline, ost.str());
+ drawStr(pain, LM_TC_TEX, size, x, baseline, ost.str().c_str());
}
}
else {
std::ostringstream ost;
ost << '#' << number;
- width = mathed_string_width(LM_TC_TEX, size, ost.str());
- mathed_string_height(LM_TC_TEX, size, ost.str(), ascent, descent);
+ width = mathed_string_width(LM_TC_TEX, size, ost.str().c_str());
+ mathed_string_height(LM_TC_TEX, size, ost.str().c_str(),
+ ascent, descent);
}
}