Skip to content

Commit

Permalink
Merge pull request #719 from bitcraze/rik/localefix
Browse files Browse the repository at this point in the history
Fix bug by making decimal input handling locale-independent
  • Loading branch information
gemenerik authored Jul 3, 2024
2 parents b61e329 + 747b8f2 commit b498f2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cfclient/ui/widgets/plotwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def __init__(self, parent=None, fps=100, title="", *args):
self._first_ts = None

self._x_range = (
float(self._range_x_min.text()), float(self._range_x_max.text()))
float(self._range_x_min.text().replace(',', '.')), float(self._range_x_max.text().replace(',', '.'))
)
self._nbr_samples = int(self._nbr_of_samples_x.text())
self._nbr_of_samples_x.valueChanged.connect(self._nbr_samples_changed)
self._nbr_seconds = int(self._nbr_of_seconds_x.text())
Expand Down

0 comments on commit b498f2e

Please sign in to comment.