]> git.lyx.org Git - lyx.git/blobdiff - src/insets/mailinset.C
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / mailinset.C
index 8eb06f9964eae877497711e7ff426156c50a3ddb..eb396823e77e768efcb72a4b25ec1eeb8ac212c1 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /**
  * \file mailinset.C
  * This file is part of LyX, the document processor.
@@ -6,7 +5,7 @@
  *
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 #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()));
 }