From 37e53807073bce1e2048bd2ff5145560f465c518 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Fri, 17 Jul 2026 16:13:58 +0200 Subject: [PATCH] [fix:] placeholder got an image, too -_- --- Tasks/PdfBuilder.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tasks/PdfBuilder.cs b/Tasks/PdfBuilder.cs index 9587fe4..11491aa 100644 --- a/Tasks/PdfBuilder.cs +++ b/Tasks/PdfBuilder.cs @@ -254,7 +254,7 @@ public class PdfBuilder // First cell: placeholder if (isFirstCell) { - DrawCell(gfx, x, y, pvst, placeholderText); + DrawCell(gfx, x, y, pvst, placeholderText, true); isFirstCell = false; } else if (addressIndex < addresses.Count) @@ -275,7 +275,7 @@ public class PdfBuilder } - private void DrawCell(XGraphics gfx, double x, double y, bool pvst, string? address) + private void DrawCell(XGraphics gfx, double x, double y, bool pvst, string? address, bool isPlaceholer = false) { try { @@ -286,7 +286,7 @@ public class PdfBuilder var rect = new XRect(x, y, cellWidthPoints, cellHeightPoints); gfx.DrawRectangle(XPens.Transparent, rect); - if (pvst) + if (pvst && !isPlaceholer) { InsertDPPressepostImage(gfx, rect); }