diff --git a/Graphics/gl2ps.cpp b/Graphics/gl2ps.cpp
index d70b8f1393855dfd552bfc82f3de6175eed993ee..fc3f963a18d6ed4d020a1fd81787b456c1ad068e 100644
--- a/Graphics/gl2ps.cpp
+++ b/Graphics/gl2ps.cpp
@@ -2,7 +2,7 @@
  * GL2PS, an OpenGL to PostScript Printing Library
  * Copyright (C) 1999-2003 Christophe Geuzaine 
  *
- * $Id: gl2ps.cpp,v 1.67 2003-07-03 18:59:52 geuzaine Exp $
+ * $Id: gl2ps.cpp,v 1.68 2003-07-04 14:12:28 geuzaine Exp $
  *
  * E-mail: geuz@geuz.org
  * URL: http://www.geuz.org/gl2ps/
@@ -2000,7 +2000,7 @@ GL2PSDLL_API GLint gl2psBeginPage(const char *title, const char *producer,
   gl2ps->options = options;
 
   if(gl2ps->options & GL2PS_USE_CURRENT_VIEWPORT){
-    glGetIntegerv(GL_VIEWPORT, viewport);
+    glGetIntegerv(GL_VIEWPORT, gl2ps->viewport);
   }
   else{
     for(i = 0; i < 4; i++){