diff --git a/Makefile b/Makefile
index b2d6d0da841d1c6ad007ba9cd240e80e122ae915..cdd23e0eff115c4c2e1cd4b4308755cd828e8446 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-RELEASE = 1.3.0
+RELEASE = 1.3.1
 DATE = `date "+%Y%m%d"`
 
 clean:
diff --git a/doc/gl2ps.tex b/doc/gl2ps.tex
index 8002a394fff27e4fff13c6015dc8b1123e13f8bf..8d0b211098c723d5af2f05aa0dae77fceca7ee28 100644
--- a/doc/gl2ps.tex
+++ b/doc/gl2ps.tex
@@ -1,4 +1,4 @@
-%  $Id: gl2ps.tex,v 1.215 2006-08-09 18:17:08 geuzaine Exp $
+%  $Id: gl2ps.tex,v 1.216 2006-08-11 13:28:28 geuzaine Exp $
 %
 %  GL2PS, an OpenGL to PostScript Printing Library
 %  Copyright (C) 1999-2006 Christophe Geuzaine <geuz@geuz.org>
@@ -59,7 +59,7 @@
 
 \title{GL2PS: an OpenGL to PostScript printing library}
 \author{Christophe Geuzaine}
-\date{Version 1.3.0, August 8 2006}
+\date{Version 1.3.1, August ? 2006}
 
 \maketitle
 
@@ -92,7 +92,7 @@ the OpenGL window.</em></small></td>
 </center>
 <h2>Download</h2>
 The latest stable version of GL2PS is
-<a href="http://geuz.org/gl2ps/src/gl2ps-1.3.0.tgz">gl2ps-1.3.0.tgz</a>.
+<a href="http://geuz.org/gl2ps/src/gl2ps-1.3.1.tgz">gl2ps-1.3.1.tgz</a>.
 Older versions and nightly CVS snapshots are available 
 <a href="http://geuz.org/gl2ps/src/">here</a>.
 <p>
@@ -981,6 +981,9 @@ seem to be available anymore).
   (whenever possible lines are now rendered in a single path); better
   sorting of text and bitmap elements; new function \dd{gl2psSpecial}
   to print device-specific strings in the output stream.
+\item[1.3.1] (Aug ?, 2006) Fixed a small bug for PostScript output
+  with multiple viewports, where the viewport could be drawn with an
+  unwanted colored outline.
 \end{description}
 
 \end{document}
diff --git a/gl2ps.h b/gl2ps.h
index f0bc09ca123c6210a60dc8e5bb1deeb754eca472..dadd51c0402b25176a6f280c624dc6656e9d9c27 100644
--- a/gl2ps.h
+++ b/gl2ps.h
@@ -1,4 +1,4 @@
-/* $Id: gl2ps.h,v 1.111 2006-07-26 12:28:39 geuzaine Exp $ */
+/* $Id: gl2ps.h,v 1.112 2006-08-11 13:29:45 geuzaine Exp $ */
 /*
  * GL2PS, an OpenGL to PostScript Printing Library
  * Copyright (C) 1999-2006 Christophe Geuzaine <geuz@geuz.org>
@@ -78,7 +78,7 @@
 
 #define GL2PS_MAJOR_VERSION 1
 #define GL2PS_MINOR_VERSION 3
-#define GL2PS_PATCH_VERSION 0
+#define GL2PS_PATCH_VERSION 1
 #define GL2PS_EXTRA_VERSION "-cvs"
 
 #define GL2PS_VERSION (GL2PS_MAJOR_VERSION + \
diff --git a/gl2psTest.c b/gl2psTest.c
index eea5f9d17e1cfe1749fbf48cdd4c87ed85243846..5dac588a2fdfa4785f9ced2dcc5a6c08bfa1b037 100644
--- a/gl2psTest.c
+++ b/gl2psTest.c
@@ -1,4 +1,4 @@
-/* $Id: gl2psTest.c,v 1.80 2006-08-09 01:12:07 geuzaine Exp $ */
+/* $Id: gl2psTest.c,v 1.81 2006-08-11 13:33:27 geuzaine Exp $ */
 /*
  * GL2PS, an OpenGL to PostScript Printing Library
  * Copyright (C) 1999-2006 Christophe Geuzaine <geuz@geuz.org>
@@ -39,7 +39,7 @@
 
 /*
   To compile on Linux: 
-  gcc gl2psTest.c gl2ps.c -lglut -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXi -lXmu -lm
+  gcc gl2psTest.c gl2ps.c -lglut -lGL -lGLU -lX11 -lm
 
   To compile on MacOSX: 
   gcc gl2psTest.c gl2ps.c -framework OpenGL -framework GLUT -framework Cocoa
diff --git a/gl2psTestSimple.c b/gl2psTestSimple.c
index adf3ec2d0cef8383286c1a5e70b53d59ff7a14aa..63dd4a9eb027163c414fea4314dfc5c79eeaf151 100644
--- a/gl2psTestSimple.c
+++ b/gl2psTestSimple.c
@@ -1,4 +1,4 @@
-/* $Id: gl2psTestSimple.c,v 1.14 2006-07-24 14:01:20 geuzaine Exp $ */
+/* $Id: gl2psTestSimple.c,v 1.15 2006-08-11 13:33:27 geuzaine Exp $ */
 /*
  * GL2PS, an OpenGL to PostScript Printing Library
  * Copyright (C) 1999-2006 Christophe Geuzaine <geuz@geuz.org>
@@ -34,7 +34,7 @@
 
 /*
   To compile on Linux:
-  gcc gl2psTestSimple.c gl2ps.c -lglut -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXi -lXmu -lm
+  gcc gl2psTestSimple.c gl2ps.c -lglut -lGL -lGLU -lX11 -lm
 
   To compile on MacOSX:
   gcc gl2psTestSimple.c gl2ps.c -framework OpenGL -framework GLUT -framework Cocoa