Skip to content

Commit 60118aa

Browse files
committed
CurveStatsTool: fix regression introduced with 29f7953
1 parent b09b9a7 commit 60118aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotpy/tools/curve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,12 @@ def set_labelfuncs(
178178

179179
def get_label_title(self) -> str | None:
180180
"""Return label title"""
181-
curve = self.last_item_holder.get()
181+
curve = self.last_item_holder.update_from_selection(self.manager.get_plot())
182182
return curve.title().text() if curve else None
183183

184184
def get_computation_specs(self) -> list[tuple[CurveItem, str, Callable[..., Any]]]:
185185
"""Return computation specs"""
186-
curve = self.last_item_holder.get()
186+
curve = self.last_item_holder.update_from_selection(self.manager.get_plot())
187187
return [(curve, label, func) for label, func in self.labelfuncs]
188188

189189
def update_status(self, plot: BasePlot) -> None:

0 commit comments

Comments
 (0)