From 180dee390f01817e4b6f563055fb1cca2f1f27b9 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 24 Apr 2004 04:19:43 +0000
Subject: [PATCH] set default position of 2d graphs 20 pixels more to the right

---
 Common/DefaultOptions.h | 2 +-
 Graphics/Graph2D.cpp    | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h
index dad1851025..4192f0369d 100644
--- a/Common/DefaultOptions.h
+++ b/Common/DefaultOptions.h
@@ -997,7 +997,7 @@ StringXNumber ViewOptions_Number[] = {
     "Display size of points (in pixels)" },
   { F|O, "PointType" , opt_view_point_type , 0. , 
     "Display points as solid color dots (0) or 3D spheres (1)" },
-  { F|O, "PositionX" , opt_view_position0 , 80. , 
+  { F|O, "PositionX" , opt_view_position0 , 100. , 
     "Horizontal position (in pixels) of the upper left corner of the scale or 2D graph" }, 
   { F|O, "PositionY" , opt_view_position1 , 50. , 
     "Vertical position (in pixels) of the upper left corner of the scale or 2D graph" }, 
diff --git a/Graphics/Graph2D.cpp b/Graphics/Graph2D.cpp
index bdebad1324..404dd5b37d 100644
--- a/Graphics/Graph2D.cpp
+++ b/Graphics/Graph2D.cpp
@@ -1,4 +1,4 @@
-// $Id: Graph2D.cpp,v 1.33 2004-04-24 02:13:07 geuzaine Exp $
+// $Id: Graph2D.cpp,v 1.34 2004-04-24 04:19:43 geuzaine Exp $
 //
 // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
 //
@@ -378,8 +378,8 @@ void Draw_Graph2D(void)
 {
   int i, nbauto = 0;
   Post_View *v;
-  double dx, dy, bb[4], bbtot[4] = { 0., 0., 0., 0. }, pos[2], tic, space =
-    10.;
+  double dx, dy, bb[4], bbtot[4] = { 0., 0., 0., 0. }, pos[2] = {0., 0.}, tic;
+  double space = 10.;
   char label[1024];
 
   if(!CTX.post.list)
-- 
GitLab