summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2014-04-10 14:48:25 (GMT)
committerjoye <joye>2014-04-10 14:48:25 (GMT)
commitbed81f319fe09f1c187815a1d546b67b0bb7bf1b (patch)
tree336c9544e06c5151f56a75cc80b9c2f3a3c0e093 /src
parentb69de12f57ecf58f1371b123d8063f59b81b5776 (diff)
downloadblt-bed81f319fe09f1c187815a1d546b67b0bb7bf1b.zip
blt-bed81f319fe09f1c187815a1d546b67b0bb7bf1b.tar.gz
blt-bed81f319fe09f1c187815a1d546b67b0bb7bf1b.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrLegd.C14
-rw-r--r--src/bltGrLegd.h2
2 files changed, 4 insertions, 12 deletions
diff --git a/src/bltGrLegd.C b/src/bltGrLegd.C
index 414d123..7d7e39d 100644
--- a/src/bltGrLegd.C
+++ b/src/bltGrLegd.C
@@ -162,14 +162,8 @@ Legend::Legend(Graph* graphPtr)
entryHeight_ =0;
x_ =0;
y_ =0;
- maxSymSize_ =0;
bindTable_ =NULL;
focusGC_ =NULL;
- focus_ =0;
- cursorX_ =0;
- cursorY_ =0;
- cursorWidth_ =0;
- cursorHeight_ =0;
focusPtr_ =NULL;
selAnchorPtr_ =NULL;
selMarkPtr_ =NULL;
@@ -1061,14 +1055,14 @@ static ClientData PickEntryProc(ClientData clientData, int x, int y,
Legend* legendPtr = graphPtr->legend;
LegendOptions* ops = (LegendOptions*)legendPtr->ops();
- int w = legendPtr->width_;
- int h = legendPtr->height_;
+ int w = legendPtr->width();
+ int h = legendPtr->height();
if (legendPtr->titleHeight_ > 0)
y -= legendPtr->titleHeight_ + ops->yPad;
- x -= legendPtr->x_ + ops->borderWidth;
- y -= legendPtr->y_ + ops->borderWidth;
+ x -= legendPtr->x() + ops->borderWidth;
+ y -= legendPtr->y() + ops->borderWidth;
w -= 2 * ops->borderWidth + 2*ops->xPad;
h -= 2 * ops->borderWidth + 2*ops->yPad;
diff --git a/src/bltGrLegd.h b/src/bltGrLegd.h
index 3beb4e6..f15a38b 100644
--- a/src/bltGrLegd.h
+++ b/src/bltGrLegd.h
@@ -130,8 +130,6 @@ class Legend {
Element *focusPtr_;
Element *selAnchorPtr_;
Element *selMarkPtr_;
- Element *selFirstPtr_;
- Element *selLastPtr_;
Blt_Chain selected_;
unsigned int titleWidth_;
unsigned int titleHeight_;