Browse Source

Merge pull request #296 from zzc-tongji/change

Add function "SetHeight".
Geoffrey J. Teale 9 năm trước cách đây
mục cha
commit
e18398f53e
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      row.go

+ 5 - 0
row.go

@@ -9,6 +9,11 @@ type Row struct {
 	isCustom     bool
 }
 
+func (r *Row) SetHeight(ht float64) {
+	r.Height = ht
+	r.isCustom = true
+}
+
 func (r *Row) SetHeightCM(ht float64) {
 	r.Height = ht * 28.3464567 // Convert CM to postscript points
 	r.isCustom = true