Skip to content

Commit

Permalink
Fix tooltip for graphics widgets #2878
Browse files Browse the repository at this point in the history
  • Loading branch information
tanviash authored Nov 20, 2023
1 parent 724c7ba commit c441d28
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ public static void attach(final Node node, final WidgetProperty<String> tooltip_
String spec = ((MacroizedWidgetProperty<?>)tooltip_property).getSpecification();

final Widget widget = tooltip_property.getWidget();
Object vtype = widget.getPropertyValue(runtimePropPVValue);
Object vtype = null;
if (widget.checkProperty(runtimePropPVValue.getName()).isPresent()) {
vtype = widget.getPropertyValue(runtimePropPVValue);
}
Display display = Display.displayOf(vtype);

// If 'vtype' supports it (i.e., it is an instance of "DisplayProvider"),
Expand Down

0 comments on commit c441d28

Please sign in to comment.