mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 23:00:15 +02:00
fpvectorial: Raise exception when pdfvectorialwriter is requested to save a vectorial (non-text) page. Issue #40858.
This commit is contained in:
parent
2b58463b83
commit
e8c9f1f61e
@ -846,6 +846,8 @@ begin
|
||||
for i := 0 to AData.GetPageCount - 1 do // iterate through pages
|
||||
begin
|
||||
TextPage := AData.GetPageAsText(i);
|
||||
if TextPage = nil then
|
||||
raise Exception.Create('No text page found.');
|
||||
Empty := AddPage(TextPage);
|
||||
for j := 0 to TextPage.GetEntitiesCount - 1 do // iterate through entities
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user