Skip to content

Commit 6cfb41f

Browse files
committed
detect inch unit differently
1 parent 5e1da64 commit 6cfb41f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/parseOSD_functions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@
454454
})
455455

456456
# convert in -> cm using the first horizon
457-
if (hz.data$units[1] %in% c('inches', 'in', 'inch')) {
457+
if (startsWith(tolower(hz.data$units[1]), "in")) {
458458
hz.data$top <- round(hz.data$top * 2.54)
459459
hz.data$bottom <- round(hz.data$bottom * 2.54)
460460
}

0 commit comments

Comments
 (0)