]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormError.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormError.C
index 52b233236287673ef6f05bb717592e0f8f911729..2a367ce307a14aed67740d7c24d528ca02e1ec42 100644 (file)
@@ -1,9 +1,11 @@
-/*
+/**
  * \file FormError.C
- * Copyright 2000-2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming 
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifdef __GNUG__
 #include "xformsBC.h"
 #include "ControlError.h"
 #include "FormError.h"
-#include "form_error.h"
+#include "forms/form_error.h"
 #include "xforms_helpers.h" // formatted
+#include FORMS_H_LOCATION
 
-typedef FormCB<ControlError, FormDB<FD_form_error> > base_class;
+typedef FormCB<ControlError, FormDB<FD_error> > base_class;
 
-FormError::FormError(ControlError & c)
-       : base_class(c, _("LaTeX Error"))
+FormError::FormError()
+       : base_class(_("LaTeX Error"))
 {}
 
 
 void FormError::build()
 {
-       dialog_.reset(build_error());
+       dialog_.reset(build_error(this));
 
        // Manage the cancel/close button
        bc().setCancel(dialog_->button_close);