From a713e477130a521d29271567b5bf914cbba1ec0e Mon Sep 17 00:00:00 2001 From: Craig Southeren Date: Thu, 20 Sep 2012 08:54:35 -0500 Subject: [PATCH] This fixes a MSVC compile error caused by a static scalar initialiser. --- common/common_plotPS_functions.cpp | 3 +++ include/plot_common.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/common_plotPS_functions.cpp b/common/common_plotPS_functions.cpp index 7f27bd5632..44e00aa6c0 100644 --- a/common/common_plotPS_functions.cpp +++ b/common/common_plotPS_functions.cpp @@ -19,6 +19,9 @@ extern const double hvb_widths[256]; extern const double hvo_widths[256]; extern const double hvbo_widths[256]; +const double PSLIKE_PLOTTER::postscriptTextAscent = 0.718; + + // Common routines for Postscript-like plotting engines void PSLIKE_PLOTTER::SetDefaultLineWidth( int width ) diff --git a/include/plot_common.h b/include/plot_common.h index 7c439fb739..8c342356f3 100644 --- a/include/plot_common.h +++ b/include/plot_common.h @@ -533,7 +533,7 @@ protected: virtual void emitSetRGBColor( double r, double g, double b ) = 0; /// Height of the postscript font (from the AFM) - static const double postscriptTextAscent = 0.718; + static const double postscriptTextAscent; // = 0.718; int returnPostscriptTextWidth( const wxString& aText, int aXSize, bool aItalic, bool aBold );