* [ 1673098 ] Export to PDF problem with unexistant URL image

This commit is contained in:
Carlos Ruiz 2007-03-03 19:24:12 +00:00
parent 10a395c9a8
commit c44a6c1b05
1 changed files with 3 additions and 2 deletions

View File

@ -1336,8 +1336,9 @@ public class TableElement extends PrintElement
;
else if (printItems[index] instanceof ImageElement)
{
g2D.drawImage(((ImageElement)printItems[index]).getImage(),
curX, (int)penY, this);
Image imageToDraw = ((ImageElement)printItems[index]).getImage();
if (imageToDraw.getHeight((ImageElement)printItems[index]) != -1)
g2D.drawImage(imageToDraw, curX, (int)penY, this);
}
else if (printItems[index] instanceof BarcodeElement)
{