Fix make_sprue unit_conversion FROM mm to other. (#260)
Before, val_mm resulted in nil which broke execution in evaluation of
division operation ("/").
Fixes #259.
dev
parent
e32a90c79e
commit
a6675b2e60
|
|
@ -156,6 +156,8 @@ module Squib
|
||||||
val_mm = val * 25.4
|
val_mm = val * 25.4
|
||||||
elsif from_unit == :cm
|
elsif from_unit == :cm
|
||||||
val_mm = val * 10.0
|
val_mm = val * 10.0
|
||||||
|
else
|
||||||
|
val_mm = val
|
||||||
end
|
end
|
||||||
|
|
||||||
if to_unit == :in
|
if to_unit == :in
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue