]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.C
Revert this change as it sneaked in and wasn't discussed yet.
[lyx.git] / src / insets / inseterror.C
index 43ceb178424de95ba7e96c6fa585ac167c87643f..c16d3515861adc08c6c37e68e40f13df450aae16 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *         Copyright 1995 Matthias Ettrich
  *          Copyright 1995-2001 The LyX Team.
  *
@@ -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)
 {}
 
@@ -62,7 +63,7 @@ void InsetError::draw(BufferView * bv, LyXFont const & font,
        LyXFont efont;
        efont.setSize(font.size()).decSize();
        efont.setColor(LColor::error);
-   
+
        // Draw as "Error" in a framed box
        x += 1;
        pain.fillRectangle(int(x), baseline - ascent(bv, font) + 1,
@@ -79,7 +80,7 @@ void InsetError::draw(BufferView * bv, LyXFont const & font,
 }
 
 
-string const InsetError::editMessage() const 
+string const InsetError::editMessage() const
 {
        return _("Opened error");
 }
@@ -87,5 +88,11 @@ string const InsetError::editMessage() const
 
 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);
 }