From a0524267394b04b7f4a558bceb866bd49a2222bf Mon Sep 17 00:00:00 2001 From: joye Date: Thu, 20 Mar 2014 16:59:16 +0000 Subject: *** empty log message *** --- src/bltGraph.C | 2 +- src/bltGraph.h | 1 - tests/polygonmarker.tcl | 4 ++-- 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 -- cgit v0.12