Skip to content

Commit

Permalink
fix(print): Imprint not toggleable
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipLeitner committed Jan 24, 2024
1 parent 1c30d01 commit ae6ab45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/hslayers/components/print/print.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ export class HsPrintService {
ctx.drawImage(lCanvas, legendPos[0], legendPos[1]);
}
}
if (print.imprintObj?.author || print.imprintObj?.abstract) {
if (
(print.imprintObj?.include && print.imprintObj?.author) ||
print.imprintObj?.abstract
) {
const iCanvas = await this.hsPrintImprintService.drawImprintCanvas(
print.imprintObj,
);
Expand Down

0 comments on commit ae6ab45

Please sign in to comment.