Gtk2: make selstart for GtkEntry setting consistent with other ws. issue #11802

git-svn-id: trunk@35596 -
This commit is contained in:
zeljko 2012-02-26 09:59:33 +00:00
parent fc35b838ef
commit 9f7ab89220

View File

@ -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)