Debian Codegraph @

debian/patches/03-fedora-patch-2.patch

raw
1 * Apply 3 changes based on revisions developed by the fedora linux team.
2 --> + 03-fedora-patch-2.diff
3 + 04-fedora-tk8.5.6.patch.diff
4 + 05-tk8.5-zoomstack.diff
5 * Those patches are required to solve segmentation faults that are observed
6 when blt is used with tcltk 8.5. We have a substantial amount of
7 experience using this patched version of blt in the Swarm
8 Simulation System (www.swarm.org) and have observed no ill-effects.
9 Author: Paul E. Johnson (Debian Packaging) <[email protected]>
10
11 --- a/generic/bltGrElem.c
12 +++ b/generic/bltGrElem.c
13 @@ -1664,6 +1664,7 @@
14 ClosestSearch search;
15 int i, x, y;
16 int flags = TCL_LEAVE_ERR_MSG;
17 + int found;
18
19 if (graphPtr->flags & RESET_AXES) {
20 Blt_ResetAxes(graphPtr);
21 @@ -1708,12 +1709,21 @@
22 search.dist = (double)(search.halo + 1);
23
24 if (i < argc) {
25 + Blt_ChainLink *linkPtr;
26
27 for ( /* empty */ ; i < argc; i++) {
28 if (NameToElement(graphPtr, argv[i], &elemPtr) != TCL_OK) {
29 return TCL_ERROR; /* Can't find named element */
30 }
31 - if (elemPtr->hidden) {
32 + found = FALSE;
33 + for (linkPtr = Blt_ChainFirstLink(graphPtr->elements.displayList);
34 + linkPtr == NULL; linkPtr = Blt_ChainNextLink(linkPtr)) {
35 + if (elemPtr == Blt_ChainGetValue(linkPtr)) {
36 + found = TRUE;
37 + break;
38 + }
39 + }
40 + if ((!found) || (elemPtr->hidden)) {
41 Tcl_AppendResult(interp, "element \"", argv[i],
42 "\" is hidden", (char *)NULL);
43 return TCL_ERROR; /* Element isn't visible */