Skip to content

Commit

Permalink
Fix #354
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Jul 18, 2021
1 parent ba9f089 commit b80c13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pdfcpu/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func appendPageBoxesInfo(ss *[]string, pb PageBoundaries, unit string, currUnit
*ss = append(*ss, fmt.Sprintf("Page %d: %s", i+1, s))
mb := pb.MediaBox()
cb := pb.CropBox()
if cb == nil || mb.equals(*cb) {
if cb == nil || mb != nil && mb.equals(*cb) {
appendEqualMediaAndCropBoxInfo(ss, pb, unit, currUnit)
return
}
Expand Down

0 comments on commit b80c13b

Please sign in to comment.