X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseterror.C;h=cd4b51737c3d6bfcb4c3ceac13f4cad805d1849b;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=9fa6b281d02cfd1c41cded00857b1757c7523abf;hpb=83acbbd5237373926c629855379e1df9a04209b2;p=lyx.git diff --git a/src/insets/inseterror.C b/src/insets/inseterror.C index 9fa6b281d0..cd4b51737c 100644 --- a/src/insets/inseterror.C +++ b/src/insets/inseterror.C @@ -16,6 +16,7 @@ #include "BufferView.h" #include "font.h" +#include "lyxfont.h" #include "gettext.h" #include "inseterror.h" #include "LyXView.h" @@ -26,7 +27,7 @@ using std::ostream; /* Error, used for the LaTeX-Error Messages */ -InsetError::InsetError(string const & str) +InsetError::InsetError(string const & str, bool) : contents(str) {} @@ -79,13 +80,19 @@ void InsetError::draw(BufferView * bv, LyXFont const & font, } -string const InsetError::EditMessage() const +string const InsetError::editMessage() const { return _("Opened error"); } -void InsetError::Edit(BufferView * bv, int, int, unsigned int) +void InsetError::edit(BufferView * bv, int, int, unsigned int) { - bv->owner()->getDialogs()->showError( this ); + bv->owner()->getDialogs()->showError(this); +} + + +void InsetError::edit(BufferView * bv, bool) +{ + edit(bv, 0, 0, 0); }