mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:39:24 +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
|
if not WSCheckHandleAllocated(ACustomEdit, 'SetSelStart') then
|
||||||
Exit;
|
Exit;
|
||||||
Entry := PGtkEntry(ACustomEdit.Handle);
|
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
|
if Entry^.text_max_length > 0 then
|
||||||
NewPos := Min(NewStart, Entry^.text_max_length)
|
NewPos := Min(NewStart, Entry^.text_max_length)
|
||||||
|
Loading…
Reference in New Issue
Block a user