--- src/main.cc.orig	Mon May 11 17:33:26 1998
+++ src/main.cc	Mon May 11 17:37:29 1998
@@ -50,12 +50,14 @@
 #include <sys/param.h>
 #endif
 
+#include <floatingpoint.h>
 #include <kapp.h>
 #include "version.h"
 #include "KIllustrator.h"
 #include "KIllustratorApp.h"
 
 int main (int argc, char** argv) {
+  fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV));
   KIllustratorApp* app = new KIllustratorApp (argc, argv, APP_NAME);
   app->readDefaultSettings ();
   app->installFilters ();
@@ -80,5 +82,9 @@
     KTopLevelWidget* toplevel = new KIllustrator ();	
     toplevel->show ();
   }
-  return app->exec ();
+
+  int retval = app->exec ();
+  fpresetsticky(FP_X_DZ|FP_X_INV);
+  fpsetmask(FP_X_DZ|FP_X_INV);
+  return retval;
 }
