diff options
Diffstat (limited to 'src/fltk_binding/fltk-widgets-groups-text_displays.adb')
-rw-r--r-- | src/fltk_binding/fltk-widgets-groups-text_displays.adb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fltk_binding/fltk-widgets-groups-text_displays.adb b/src/fltk_binding/fltk-widgets-groups-text_displays.adb index e39355f..5907185 100644 --- a/src/fltk_binding/fltk-widgets-groups-text_displays.adb +++ b/src/fltk_binding/fltk-widgets-groups-text_displays.adb @@ -110,11 +110,11 @@ package body FLTK.Widgets.Groups.Text_Displays is procedure Set_Buffer - (TD : in out Text_Display'Class; - TB : in Text_Buffer_Access) is + (TD : in out Text_Display'Class; + TB : aliased in out Text_Buffer) is begin - fl_text_display_set_buffer (TD.Void_Ptr, Wrapper (TB.all).Void_Ptr); - TD.Buffer := TB; + fl_text_display_set_buffer (TD.Void_Ptr, Wrapper (TB).Void_Ptr); + TD.Buffer := TB'Access; end Set_Buffer; |