|
From: <and...@us...> - 2008-12-10 10:08:14
|
Revision: 9074
http://plplot.svn.sourceforge.net/plplot/?rev=9074&view=rev
Author: andrewross
Date: 2008-12-10 10:08:05 +0000 (Wed, 10 Dec 2008)
Log Message:
-----------
Rearrange variable definitions in recent patch to fix compilation error
on MS Visual Studio.
Modified Paths:
--------------
trunk/drivers/ps.c
trunk/drivers/psttf.cc
Modified: trunk/drivers/ps.c
===================================================================
--- trunk/drivers/ps.c 2008-12-10 08:28:28 UTC (rev 9073)
+++ trunk/drivers/ps.c 2008-12-10 10:08:05 UTC (rev 9074)
@@ -156,6 +156,8 @@
{
PSDev *dev;
+ PLFLT pxlx, pxly;
+
/* Set default values - 7.5 x 10 [inches] (72 points = 1 inch) */
if (pls->xlength <= 0 || pls->ylength <=0) {
pls->xlength = 540;
@@ -164,8 +166,8 @@
if (pls->xdpi <= 0) pls->xdpi = 72.;
if (pls->ydpi <= 0) pls->ydpi = 72.;
- PLFLT pxlx = YPSSIZE/LPAGE_X;
- PLFLT pxly = XPSSIZE/LPAGE_Y;
+ pxlx = YPSSIZE/LPAGE_X;
+ pxly = XPSSIZE/LPAGE_Y;
if (text)
{
Modified: trunk/drivers/psttf.cc
===================================================================
--- trunk/drivers/psttf.cc 2008-12-10 08:28:28 UTC (rev 9073)
+++ trunk/drivers/psttf.cc 2008-12-10 10:08:05 UTC (rev 9074)
@@ -194,6 +194,7 @@
char *a;
PSDev *dev;
PostscriptDocument *doc;
+ PLFLT pxlx, pxly;
/* Set default values - 7.5 x 10 [inches] (72 points = 1 inch) */
if (pls->xlength <= 0 || pls->ylength <=0) {
@@ -204,8 +205,8 @@
if (pls->ydpi <= 0) pls->ydpi = 72.;
- PLFLT pxlx = YPSSIZE/LPAGE_X;
- PLFLT pxly = XPSSIZE/LPAGE_Y;
+ pxlx = YPSSIZE/LPAGE_X;
+ pxly = XPSSIZE/LPAGE_Y;
if (text)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|