[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
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);
}