Skip to content

Commit baf7b16

Browse files
authored
Fixes bug where tooltip info is incorrectly retrieved when tooltip info is not none (#986)
1 parent 7075e46 commit baf7b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastplotlib/tools/_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def position(self, pos: tuple[float, float]):
265265
): # some graphics don't support tooltips, ex: Text
266266
if graphic.tooltip_format is not None:
267267
# custom formatter
268-
info = graphic.tooltip_format
268+
info = graphic.tooltip_format(pick_info)
269269
else:
270270
# default formatter for this graphic
271271
info = graphic.format_pick_info(pick_info)

0 commit comments

Comments
 (0)