Skip to content

Commit

Permalink
Fixed a bug where a dot is not inserted when inserting
Browse files Browse the repository at this point in the history
  • Loading branch information
limafresh committed Oct 18, 2024
1 parent 0744fac commit 9b955b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyqulator"
version = "1.4.1"
version = "1.4.2"
dependencies = [
"PyQt6>=6.4.2",
"sympy>=1.13.3",
Expand Down
4 changes: 2 additions & 2 deletions src/pyqulator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ def line_result_paste(self):
filtered_text = ""
for char in text:
if self.ui.stackedwidget.currentIndex() in {0, 1, 2}:
if char.isdigit() or char in "+-*/()":
if char.isdigit() or char in ".+-*/()":
filtered_text += char
else:
if char.isdigit():
if char.isdigit() or char in ".":
filtered_text += char
self.current_line_result.setText(filtered_text)

Expand Down

0 comments on commit 9b955b3

Please sign in to comment.