diff --git a/ChangeLog.txt b/ChangeLog.txt index 264240639a..210eece041 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,13 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2025-01-10 10:15 UTC+0100 Aleksander Czajczynski (hb fki.pl) + * src/rtl/listbox.prg + * merged #371 from Kamil, thanks for the patch. + Applied minor reformat .NOT. -> ! and added a comment + about buggy ListBox:hitTest() on no-box dropdown in + Cl*pper 5.3. + 2025-01-09 12:00 UTC+0100 Kamil Przybylski (kprzybylski quay.pl) * src/rtl/listbox.prg ! fixed nTop not being incremented in ListBox:hitTest() for no-box dropdown diff --git a/src/rtl/listbox.prg b/src/rtl/listbox.prg index 935eb70658..0755fab527 100644 --- a/src/rtl/listbox.prg +++ b/src/rtl/listbox.prg @@ -412,7 +412,10 @@ METHOD hitTest( nMRow, nMCol ) CLASS ListBox nTop++ ENDIF - IF ::lIsOpen .AND. .NOT. Empty( ::cHotBox + ::cColdBox ) + /* NOTE: Harbour extension over Cl*pper abilities, CLP5.3 + with mouse support will crash, RTE "Argument Error: +" + when a borderless listbox/dropdown is mouse-clicked */ + IF ::lIsOpen .AND. ! Empty( ::cHotBox + ::cColdBox ) nOffset := 1 DO CASE