I was able to fix issue
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39832
about TEnumPropertyEditor in Lazarus IdeIntf.
Explanation:
function GetEnumName() in FPC's rtl/objpas/typinfo.pp returns the enum's
unit name for one gap in a non-contiguous enum, and an empty string for the
On 11/08/2022 13:38, Juha Manninen via fpc-devel wrote:
// An empty string and the enum's unit name happen in gaps
// of a non-contiguous enum. Why the unit name? A bug in FPC code?
with GetTypeData(EnumType)^ do
for I := MinValue to MaxValue do begin
s :=
09.08.2022 03:49, Maxim Ganetsky via fpc-devel пишет:
Hello.
I am trying to set up cross-compilation from Linux x86_64 to Win32 and
have the following problems:
Case 1. Using FPC 3.2.0.
I installed the following:
fpc-3.2.0-x86_64-linux.tar
fpc-3.2.0.i386-linux.tar
On 11/08/2022 18:11, Juha Manninen via fpc-devel wrote:
The MaxValue is used in many places for enum and set properties while
GetEnumNameCount() is not used anywhere.
There are other similar bugs. At least these 2 in propedits.pp look fishy:
- procedure TSetPropertyEditor.GetProperties
On Thu, Aug 11, 2022 at 4:44 PM Martin Frb via fpc-devel <
fpc-devel@lists.freepascal.org> wrote:
> Because you are not supposed to use MaxValue
> Instead use GetEnumNameCount
>
> for I := MinValue to MinValue + GetEnumNameCount(...) - 1 do begin
>
> The unit name is returned because the