summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bltGraph.C2
-rw-r--r--src/bltGraph.h1
-rw-r--r--tests/polygonmarker.tcl4
3 files changed, 3 insertions, 4 deletions
diff --git a/src/bltGraph.C b/src/bltGraph.C
index 6fa82a9..552e4ae 100644
--- a/src/bltGraph.C
+++ b/src/bltGraph.C
@@ -1061,7 +1061,7 @@ static ClientData PickEntry(ClientData clientData, int x, int y,
for (link = Blt_Chain_LastLink(graphPtr->elements.displayList);
link != NULL; link = Blt_Chain_PrevLink(link)) {
elemPtr = (Element*)Blt_Chain_GetValue(link);
- if (elemPtr->flags & (HIDE|MAP_ITEM))
+ if (elemPtr->hide || (elemPtr->flags & MAP_ITEM))
continue;
if (elemPtr->state == BLT_STATE_NORMAL)
diff --git a/src/bltGraph.h b/src/bltGraph.h
index 8e55c13..558e810 100644
--- a/src/bltGraph.h
+++ b/src/bltGraph.h
@@ -87,7 +87,6 @@ typedef struct {
} ClosestSearch;
typedef struct {
- /* Generic fields common to all graph objects. */
ClassId classId; /* Class type of object. */
const char *name; /* Identifier to refer the object. */
const char *className; /* Class name of object. */
diff --git a/tests/polygonmarker.tcl b/tests/polygonmarker.tcl
index 4cd94bd..4efe987 100644
--- a/tests/polygonmarker.tcl
+++ b/tests/polygonmarker.tcl
@@ -4,7 +4,7 @@ set w .line
set graph [bltLineGraph $w]
set mm [$graph marker create polygon tt -element data1 \
- -coords {1 50 1.5 100 1 150} -polygonwidth 5]
+ -coords {1 50 1.5 100 1 150} -linewidth 5]
bltTest3 $graph marker $mm -bindtags {aa}
bltTest3 $graph marker $mm -cap round
@@ -14,7 +14,7 @@ bltTest3 $graph marker $mm -element data2
bltTest3 $graph marker $mm -fill yellow
bltTest3 $graph marker $mm -fillbg blue
bltTest3 $graph marker $mm -join round
-bltTest3 $graph marker $mm -polygonwidth 1
+bltTest3 $graph marker $mm -linewidth 1
bltTest3 $graph marker $mm -hide yes
bltTest3 $graph marker $mm -mapx x
bltTest3 $graph marker $mm -mapy y