#include "support/LAssert.h"
#include "Lsstream.h"
+using namespace lyx::support;
void MailInset::showDialog(BufferView * bv) const
{
- lyx::Assert(bv);
- bv->owner()->getDialogs().show(name(), inset2string(), &inset());
+ Assert(bv);
+ bv->owner()->getDialogs().show(name(), inset2string(*bv->buffer()),
+ &inset());
}
void MailInset::updateDialog(BufferView * bv) const
{
- lyx::Assert(bv);
+ Assert(bv);
if(bv->owner()->getDialogs().visible(name()))
- bv->owner()->getDialogs().update(name(), inset2string());
+ bv->owner()->getDialogs().update(name(),
+ inset2string(*bv->buffer()));
}