mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fix image reader peak height
CURA-7429
This commit is contained in:
parent
2ecd30d6a9
commit
5a3bcb6161
3 changed files with 8 additions and 4 deletions
|
@ -155,8 +155,10 @@ class ImageReaderUI(QObject):
|
|||
if len(value) > 0:
|
||||
try:
|
||||
self.peak_height = float(value.replace(",", "."))
|
||||
if self.peak_height < 0:
|
||||
self.peak_height = 2.5
|
||||
except ValueError: # Can happen with incomplete numbers, such as "-".
|
||||
self._width = 0
|
||||
self.peak_height = 2.5 # restore default
|
||||
else:
|
||||
self.peak_height = 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue