mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:19:37 +02:00
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:
parent
ee8eeaf5d2
commit
73a2a6371f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user