diff --git a/lib/roo/excelx.rb b/lib/roo/excelx.rb index 80f897c7..3154e89b 100644 --- a/lib/roo/excelx.rb +++ b/lib/roo/excelx.rb @@ -315,11 +315,7 @@ def comment(row,col,sheet=nil) # true, if there is a comment def comment?(row,col,sheet=nil) - sheet ||= @default_sheet - # read_cells(sheet) - read_comments(sheet) unless @comments_read[sheet] - row,col = normalize(row,col) - comment(row,col) != nil + comment(row,col,sheet) != nil end # returns each comment in the selected sheet as an array of elements