Recent

Author Topic: Illegal type conversion: "TCornerSet" to "TPdfCorners"  (Read 2691 times)

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Illegal type conversion: "TCornerSet" to "TPdfCorners"
« on: March 22, 2013, 03:49:52 pm »
Good morning,

Installed the Snapshot: Lazarus-1.1-40616-fpc-2.7.1-20130322-win32.exe

rebuilding the IDE:

C:\lazarus\components\lazreport\source\addons\pdfexport\lr_e_pdf.pas(109,27)
Error: Illegal type conversion: "TCornerSet" to "TPdfCorners"

how to fix?

wcleyton

  • Jr. Member
  • **
  • Posts: 80
Re: LazReport - Illegal type conversion: "TCornerSet" to "TPdfCorners"
« Reply #1 on: March 22, 2013, 09:00:30 pm »
Good afternoon,

With Lazarus-1.1-40529-fpc-2.7.1-20130311-win32.exe this problem does not occur. This is a bug?

Att,

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Illegal type conversion: "TCornerSet" to "TPdfCorners"
« Reply #2 on: March 23, 2013, 06:56:45 am »
AFAIK, no, Lazreport is developed for the development version of Lazarus.
If you have an older version, you'd probably need the corresponding Lazreport version.

However, I'm not sure. You might have a look yourself on the Lazreport wiki page to confirm.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Re: Illegal type conversion: "TCornerSet" to "TPdfCorners"
« Reply #3 on: March 23, 2013, 09:44:35 am »
In this case, it's a compiler problem (maybe a regression), it was introduced in FPC r23898, you know, with the latest features you get the latest bugs too :)

Anyway, it's reported in bug tracker: http://bugs.freepascal.org/view.php?id=24123

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Re: Illegal type conversion: "TCornerSet" to "TPdfCorners"
« Reply #4 on: March 23, 2013, 09:53:15 pm »
fixed in Lazarus r40626