Skip to content

Commit

Permalink
Merge pull request #240 from vsimakhin/fix/extended-format
Browse files Browse the repository at this point in the history
fix a bug with extended pdf export
  • Loading branch information
vsimakhin authored Jun 25, 2024
2 parents 5f1d5ab + 9651d6e commit 71f7cdb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [Unreleased]

- Fix: Bug with columns for the extended PDF format, both A4 and A5.
- Update: Update golang to 1.21.11 and golang packages
- Fix: The daterange picker on the main Logbook page didn't recognize the settings for the first day of the week (Monday or Sunday)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ You also can easily export all flight records into EASA style pdf format, print

## [Unreleased]

- Fix: Bug with columns for the extended PDF format, both A4 and A5.
- Update: Update golang to 1.21.11 and golang packages
- Fix: The daterange picker on the main Logbook page didn't recognize the settings for the first day of the week (Monday or Sunday)

Expand Down
14 changes: 14 additions & 0 deletions internal/pdfexport/pdfexport.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,20 @@ func (p *PDFExporter) initColumns() {
c.Col23, //remarks
},
}

// extended format add Date column to the FSTD session by reducing Remarks
if p.Export.IsExtended {
p.columns.w1[10] += c.Col1
p.columns.w1[11] -= c.Col1

p.columns.w2[11] += c.Col1
p.columns.w2[12] -= c.Col1

p.columns.w3[22] -= c.Col1

p.columns.w4[15] += c.Col1
p.columns.w4[17] -= c.Col1
}
}

// initPDF initializes the PDF object
Expand Down

0 comments on commit 71f7cdb

Please sign in to comment.