2000-09-18 Lars Gullik Bjønnes <larsbj@lyx.org>
+ * src/mathed/math_cursor.C (MacroModeClose): don't call SetName
+ with strnew in arg, use correct emptystring when calling SetName.
+
* several files: remove all commented code with relation to
HAVE_SSTREAM beeing false. We now only support stringstream and
not strstream.
if (macroln > 0 && (!l || (l && IsMacro(l->token, l->id))) &&
!MathMacroTable::mathMTable.getMacro(macrobf)) {
if (!l) {
- imacro->SetName(strnew(macrobf));
+ //imacro->SetName(strnew(macrobf));
+ imacro->SetName(macrobf);
// This guarantees that the string will be removed by destructor
imacro->SetType(LM_OT_UNDEF);
} else
imacro->SetName(l->name);
} else {
Left();
- imacro->SetName(0);
+ imacro->SetName("");
if (cursor->GetInset()->GetType() == LM_OT_ACCENT) {
setAccent(static_cast<MathAccentInset*>(cursor->GetInset())->getAccentCode());
}