mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:39:28 +02:00
LCL-GTK2: Fix deleting last line of TGtk2MemoStrings. Issue #37166, patch from Joeny Ang.
git-svn-id: trunk@63277 -
This commit is contained in:
parent
9b896ca480
commit
9233619fe7
@ -202,10 +202,8 @@ StartIter,
|
||||
EndIter: TGtkTextIter;
|
||||
begin
|
||||
gtk_text_buffer_get_iter_at_line(FGtkBuf, @StartIter, Index);
|
||||
if Index = Count-1 then begin
|
||||
gtk_text_iter_backward_char(@StartIter);
|
||||
if Index = Count-1 then
|
||||
gtk_text_buffer_get_end_iter(FGtkBuf, @EndIter)
|
||||
end
|
||||
else
|
||||
gtk_text_buffer_get_iter_at_line(FGtkBuf, @EndIter, Index+1);
|
||||
gtk_text_buffer_delete(FGtkBuf, @StartIter, @EndIter);
|
||||
|
Loading…
Reference in New Issue
Block a user