Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a bug with extended pdf export #240

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading