summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-05-23 10:51:36 +1000
committerJed Barber <jjbarber@y7mail.com>2017-05-23 10:51:36 +1000
commit0063e92bed1747e5755e42fe22bd25cc3cd72be8 (patch)
treee96c6c1c6b918b66edab743bfb7f6b318bfa1cb4
parent0fad5693b47c669384a20e7b3635879aeba96c27 (diff)
Fixed off-by-one bug in Group widget Remove procedure
-rw-r--r--src/fltk-widgets-groups.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fltk-widgets-groups.adb b/src/fltk-widgets-groups.adb
index e580323..97391da 100644
--- a/src/fltk-widgets-groups.adb
+++ b/src/fltk-widgets-groups.adb
@@ -207,7 +207,7 @@ package body FLTK.Widgets.Groups is
(This : in out Group;
Place : in Index) is
begin
- fl_group_remove2 (This.Void_Ptr, Interfaces.C.int (Place));
+ fl_group_remove2 (This.Void_Ptr, Interfaces.C.int (Place - 1));
end Remove;