From 787a5891ca0647c8ee4fc0fd8851e26cbd353224 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 19 Mar 2018 15:03:15 -0400 Subject: Change StatePut to method of StateType named Put --- grid.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grid.go') diff --git a/grid.go b/grid.go index ab042cc..6b0a511 100644 --- a/grid.go +++ b/grid.go @@ -44,7 +44,7 @@ func StateGet(pdf *Fpdf) (st StateType) { // StatePut sets the common state values contained in the state structure // specified by st. -func StatePut(pdf *Fpdf, st StateType) { +func (st StateType) Put(pdf *Fpdf) { pdf.SetDrawColor(st.clrDraw.R, st.clrDraw.G, st.clrDraw.B) pdf.SetFillColor(st.clrFill.R, st.clrFill.G, st.clrFill.B) pdf.SetTextColor(st.clrText.R, st.clrText.G, st.clrText.B) @@ -346,7 +346,7 @@ func (g GridType) Grid(pdf *Fpdf) { } // Restore drawing attributes - StatePut(pdf, st) + st.Put(pdf) } -- cgit v1.2.1-24-ge1ad