Browse Source

This fixes a MSVC compile error caused by a static scalar initialiser.

pull/1/head
Craig Southeren 13 years ago
committed by Dick Hollenbeck
parent
commit
436c17f60b
  1. 3
      common/common_plotPS_functions.cpp
  2. 2
      include/plot_common.h

3
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 )

2
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 );

Loading…
Cancel
Save