Corrected three annoying errors: (1) Select net method had been
changed to ignore labels below the top level of hierarchy. This turned out to be a bad idea. However, the original behavior was problematic due to confusion over what part of the hierarchy the labels were in. The new behavior prefixes each label with the cell hierarchy, eliminating both problems. (2) Corrected the problem where the attachment box for rendered labels is not displayed if the label name is not in the viewing area. (3) Corrected the problem where redirection of input from the layout window to the console window with the ":" command gets inadvertently canceled; this turned out to be due to a missing "*bypass" in front of the command that finds the output scale to display the pointer coordinates, and this was happening whenever the mouse was moved while typing in a command.
This commit is contained in:
parent
897a8064ba
commit
ed8117784e
|
|
@ -581,8 +581,11 @@ DBTreeSrLabels(scx, mask, xMask, tpath, flags, func, cdarg)
|
|||
else
|
||||
is_touching = GEO_TOUCH(&lab->lab_rect, r);
|
||||
}
|
||||
if (!is_touching && (flags & TF_LABEL_DISPLAY) && (lab->lab_font >= 0))
|
||||
if (!is_touching && (flags & TF_LABEL_DISPLAY) && lab->lab_font >= 0)
|
||||
{
|
||||
/* Check against bounds of the rendered label text */
|
||||
is_touching = GEO_TOUCH(&lab->lab_bbox, r);
|
||||
}
|
||||
|
||||
if (is_touching && TTMaskHasType(mask, lab->lab_type))
|
||||
if ((*func)(scx, lab, tpath, cdarg))
|
||||
|
|
|
|||
|
|
@ -418,7 +418,7 @@ DBWredisplay(w, rootArea, clipArea)
|
|||
/* Set style information beforehand */
|
||||
GrSetStuff(STYLE_LABEL);
|
||||
(void) DBTreeSrLabels(&scontext, &DBAllTypeBits, bitMask,
|
||||
(TerminalPath *) NULL, TF_LABEL_DISPLAY,
|
||||
(TerminalPath *) NULL, TF_LABEL_DISPLAY | TF_LABEL_ATTACH,
|
||||
dbwLabelFunc, (ClientData) NULL);
|
||||
GrClipTo(&rootClip);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -629,7 +629,7 @@ proc magic::cursorview {win} {
|
|||
return
|
||||
}
|
||||
set framename [winfo parent $win]
|
||||
if {[catch {set cr [cif scale out]}]} {return}
|
||||
if {[catch {set cr [*bypass cif scale out]}]} {return}
|
||||
if {$cr == 0} {return}
|
||||
set olst [${win} cursor internal]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue