kooloveme / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

Metafile printing bug #156

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Printing document with metafile (emf) cause printing both metafile and bitmap 
image

source: 
HtmlImages.pas

procedure ThtMetafileImage.Print(Canvas: TCanvas; X, Y, W, H: Integer; BgColor: 
TColor);
begin
  inherited;  /// this cause the bug

  Canvas.StretchDraw(Rect(X, Y, W, H), MetaFile);
end;

Original issue reported on code.google.com by artem2m...@gmail.com on 20 May 2012 at 11:15

GoogleCodeExporter commented 9 years ago
Thanks for spotting and solving this issue.

BTW: How did you find it as unit HtmlImage is not yet part of HtmlViewer 11?

Original comment by OrphanCat on 21 May 2012 at 6:12

GoogleCodeExporter commented 9 years ago
Fixed in the GitHub master branch.

Original comment by OrphanCat on 9 Jun 2012 at 6:32