LCL-GTK2: Fix SelStart and SelLength in OnChange with some widgetset versions. Issue #24371

git-svn-id: branches/fixes_1_8@56020 -
This commit is contained in:
mattias 2017-10-11 09:24:40 +00:00
parent ee8eeaf5d2
commit 73a2a6371f

View File

@ -454,9 +454,9 @@ begin
begin
// if we change selstart in OnChange event new cursor pos need to
// be postponed in TGtk2WSCustomEdit.SetSelStart
NeedCursorCheck := True;
if g_object_get_data(PGObject(Widget),'lcl-gtkentry-pasted-data') <> nil then
begin
NeedCursorCheck := True;
g_object_set_data(PGObject(Widget),'lcl-gtkentry-pasted-data',nil);
gtk_editable_set_position(PGtkEditable(Widget), GStart);
end else