Skip to content

Commit

Permalink
PB-1278: Simplify code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni committed Dec 18, 2024
1 parent f728689 commit 9111943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/print.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class GeoAdminCustomizer extends BaseCustomizer {
// don't ask why it works, but that's the best I could do.
// Note(IS): I'm not sure if this is the best way to handle the Y offset. Need to be tested of different case.
// Per issue 1278, it's correct. But Martin did it differently, but all test is pass.
symbolizer.graphicYOffset = symbolizer.graphicYOffset ? symbolizer.graphicYOffset : 0
symbolizer.graphicYOffset = symbolizer.graphicYOffset ?? 0
}
if (size) {
symbolizer.graphicWidth = adjustWidth(size[0] * scale, this.printResolution)
Expand Down

0 comments on commit 9111943

Please sign in to comment.