[fix:] placeholder got an image, too -_-

This commit is contained in:
2026-07-17 16:13:58 +02:00
parent cebd817735
commit 37e5380707
+3 -3
View File
@@ -254,7 +254,7 @@ public class PdfBuilder
// First cell: placeholder // First cell: placeholder
if (isFirstCell) if (isFirstCell)
{ {
DrawCell(gfx, x, y, pvst, placeholderText); DrawCell(gfx, x, y, pvst, placeholderText, true);
isFirstCell = false; isFirstCell = false;
} }
else if (addressIndex < addresses.Count) 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 try
{ {
@@ -286,7 +286,7 @@ public class PdfBuilder
var rect = new XRect(x, y, cellWidthPoints, cellHeightPoints); var rect = new XRect(x, y, cellWidthPoints, cellHeightPoints);
gfx.DrawRectangle(XPens.Transparent, rect); gfx.DrawRectangle(XPens.Transparent, rect);
if (pvst) if (pvst && !isPlaceholer)
{ {
InsertDPPressepostImage(gfx, rect); InsertDPPressepostImage(gfx, rect);
} }