fix missing return in ui_text_getsubstr

Wed, 29 Apr 2026 21:26:14 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 29 Apr 2026 21:26:14 +0200
changeset 1115
65870e2dbc1b
parent 1114
388285e877fe
child 1116
677f7f68f5aa

fix missing return in ui_text_getsubstr

resource/.DS_Store file | annotate | diff | comparison | revisions
ui/common/types.c file | annotate | diff | comparison | revisions
Binary file resource/.DS_Store has changed
--- a/ui/common/types.c	Tue Apr 28 16:36:10 2026 +0200
+++ b/ui/common/types.c	Wed Apr 29 21:26:14 2026 +0200
@@ -978,7 +978,7 @@
 
 char* ui_text_getsubstr(UiText *text, int begin, int end) {
     if(text->getsubstr) {
-        text->getsubstr(text, begin, end);
+        return text->getsubstr(text, begin, end);
     } else {
         return NULL;
     }

mercurial