mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-03 09:59:28 +02:00
fpvectorial: Add UseTopLeftCoords variable for wmf reader.
git-svn-id: trunk@52802 -
This commit is contained in:
parent
cc041a51b2
commit
2dc04023df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user