fix(core): Properly escape quotes in units. Fixes #437
This commit is contained in:
parent
2f547ecca0
commit
d2bf45e63c
2 changed files with 3 additions and 1 deletions
|
@ -170,6 +170,8 @@ Unreleased:
|
|||
- Fixed panels option being a list of numbers rather than strings
|
||||
components:
|
||||
- Fixed bug that broke millimeter sliders
|
||||
core:
|
||||
- '[Properly escape quotes in imperial units](https://github.com/freesewing/freesewing/issues/437)'
|
||||
huey:
|
||||
- '[Added seam allowance to the front closure](https://github.com/freesewing/freesewing/issues/420)'
|
||||
Removed:
|
||||
|
|
|
@ -126,7 +126,7 @@ export function beamIntersectsY(from, to, y) {
|
|||
|
||||
/** Convert value in mm to cm or imperial units */
|
||||
export function units(value, to = 'metric') {
|
||||
if (to === 'imperial') return round(value / 25.4) + '"'
|
||||
if (to === 'imperial') return round(value / 25.4) + '"'
|
||||
else return round(value / 10) + 'cm'
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue