Skip to content

Commit

Permalink
avoid integer overflow in setRowHeights(). closes #506
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Oct 9, 2024
1 parent a4a5a17 commit cb3c123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/helperFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ get_worksheet_entries <- function(wb, sheet) {
# get boolean vector of text entries
typ <- (dat$t == 1) & !is.na(dat$t)
# get text entry strings
str <- unlist(wb$sharedStrings[as.integer(val)[typ] + 1])
str <- unlist(wb$sharedStrings[as.numeric(val)[typ] + 1])
# remove xml tags
str <- gsub("<.*?>", "", str)
# write strings to vector of entries
Expand Down

0 comments on commit cb3c123

Please sign in to comment.