lazarus 1.8, operation not allowed on sorted list in report designer's properties window

It happens in Lazarus 1.8RC3, 32 or 64, and latest trunk.
new application, put a fast report component on it, right click it and design
add a band, a text. try to change the setting in the textbox, it gives error all the time.

It is OK in Lazarus 1.6.4

Comments

  • edited 12:14PM
    it is caused by lazarus svn change 53100, win32listsl.inc. the check is added to fix bug 30004
    I will check if sorting is really needed.

    https://bugs.freepascal.org/view.php?id=30004

    procedure TWin32ListStringList.Put(Index: integer; const S: string);
    var
    lItemIndex: Integer;
    lSelected: Boolean;
    AData: Pointer;
    begin
    if Sorted then
    Error(SSortedListError,0);
  • edited 12:14PM
    in frxinsp.lfm, turn off Sorted fixes the issue for me.


    object ObjectsCB: TComboBox
    Left = 0
    Height = 27
    Top = 2
    Width = 182
    ItemHeight = 15
    OnDrawItem = ObjectsCBDrawItem
    OnSelect = ObjectsCBClick
    Sorted = False
    Style = csOwnerDrawFixed
    TabOrder = 1
    end

Leave a Comment