Skip to content

Commit

Permalink
Set the Default-Row-Height flag correctly.
Browse files Browse the repository at this point in the history
Fixes a Bug (and applies the included patch) reported by Corey Burrows in
http://rubyforge.org/tracker/index.php?func=detail&aid=25784&group_id=678&atid=2677
and independently reported by email by Atsuhiro, KURITA
  • Loading branch information
Hannes Wyss authored and hannes-wyss committed Jul 3, 2009
1 parent 0df0811 commit 9ea3a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spreadsheet/excel/writer/worksheet.rb
Expand Up @@ -703,9 +703,9 @@ def write_row row
end
opts |= 0x00000100
height = if height == ROW_HEIGHT
height * TWIPS
(height * TWIPS).to_i | 0x8000
else
( height * TWIPS ) | 0x8000
height * TWIPS
end
# TODO: Row spacing
data = [
Expand Down

0 comments on commit 9ea3a87

Please sign in to comment.