[fix:] placeholder got an image, too -_-
This commit is contained in:
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user