fpvectorial: Add UseTopLeftCoords variable for wmf reader.

git-svn-id: trunk@52802 -
This commit is contained in:
wp 2016-08-13 22:41:52 +00:00
parent cc041a51b2
commit 2dc04023df

View File

@ -119,6 +119,9 @@ type
procedure ReadFromStream(AStream: TStream; AData: TvVectorialDocument); override;
end;
var
// Settings
gWMFVecReader_UseTopLeftCoords: Boolean = True;
implementation
@ -719,8 +722,7 @@ var
page: TvVectorialPage;
prevX, prevY: Word;
begin
AData.AddPage(true);
page := AData.GetPageAsVectorial(0);
page := AData.AddPage(gWMFVecReader_UseTopLeftCoords);
while AStream.Position < AStream.Size do begin
// Store the stream position where the current record begins