]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseterror.C
(Herbert): strip the extension from the graphics filename when exporting
[lyx.git] / src / insets / inseterror.C
index 20810a11ae8b1cbc370173847bcb120c9a6d9477..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"
@@ -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,7 +88,7 @@ string const InsetError::editMessage() const
 
 void InsetError::edit(BufferView * bv, int, int, unsigned int)
 {
-       bv->owner()->getDialogs()->showError( this );
+       bv->owner()->getDialogs()->showError(this);
 }