diff options
author | joye <joye> | 2014-03-21 21:53:40 (GMT) |
---|---|---|
committer | joye <joye> | 2014-03-21 21:53:40 (GMT) |
commit | 6fa0bd98252c51cdf9f1aa7345d8f8195dba93f8 (patch) | |
tree | 2c15d9333871bfc67b171a59f94c370ae28347a0 /src/bltGrElemOp.h | |
parent | 566bfd312bd0732c09e1f44ff3ec919703872c9e (diff) | |
download | blt-6fa0bd98252c51cdf9f1aa7345d8f8195dba93f8.zip blt-6fa0bd98252c51cdf9f1aa7345d8f8195dba93f8.tar.gz blt-6fa0bd98252c51cdf9f1aa7345d8f8195dba93f8.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrElemOp.h')
-rw-r--r-- | src/bltGrElemOp.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bltGrElemOp.h b/src/bltGrElemOp.h index 9faa9c8..9dea9d5 100644 --- a/src/bltGrElemOp.h +++ b/src/bltGrElemOp.h @@ -60,7 +60,10 @@ extern "C" { * foreground and background colors. */ #define SCALE_SYMBOL (1<<10) -#define NUMBEROFPOINTS(e) MIN((e)->coords.x.nValues, (e)->coords.y.nValues) +#define NUMBEROFPOINTS(e) MIN( \ + (e)->coords.x ? (e)->coords.x->nValues : 0, \ + (e)->coords.y ? (e)->coords.y->nValues : 0 \ + ) #define NORMALPEN(e) ((((e)->normalPenPtr == NULL) ? (e)->builtinPenPtr : (e)->normalPenPtr)) @@ -150,8 +153,8 @@ typedef struct { } ElemValues; typedef struct { - ElemValues x; - ElemValues y; + ElemValues* x; + ElemValues* y; } ElemCoords; struct _Element { @@ -167,7 +170,7 @@ struct _Element { int legendRelief; Axis2d axes; ElemCoords coords; - ElemValues w; + ElemValues* w; int *activeIndices; int nActiveIndices; ElementProcs *procsPtr; |