mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 13:49:32 +02:00
Gtk2: make selstart for GtkEntry setting consistent with other ws. issue #11802
git-svn-id: trunk@35596 -
This commit is contained in:
parent
fc35b838ef
commit
9f7ab89220
@ -1277,7 +1277,8 @@ begin
|
||||
if not WSCheckHandleAllocated(ACustomEdit, 'SetSelStart') then
|
||||
Exit;
|
||||
Entry := PGtkEntry(ACustomEdit.Handle);
|
||||
if GetSelStart(ACustomEdit) = NewStart then exit;
|
||||
// make gtk2 consistent with others. issue #11802
|
||||
// if GetSelStart(ACustomEdit) = NewStart then exit;
|
||||
|
||||
if Entry^.text_max_length > 0 then
|
||||
NewPos := Min(NewStart, Entry^.text_max_length)
|
||||
|
Loading…
Reference in New Issue
Block a user