From 9c2b0d743f2c3ecd7f1475c0ccf2c9f6e5805436 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sat, 28 Oct 2017 21:23:35 +0000 Subject: Fixes STR# 3420; fluid crash on certain static functions. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Function_Type.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index 90547c624..dadd44f6c 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -275,6 +275,8 @@ void Fl_Function_Type::write_code1() { if (rtype) { if (!strcmp(rtype,"static")) {is_static = 1; rtype = 0;} else if (!strncmp(rtype, "static ",7)) {is_static = 1; rtype += 7;} + } + if (rtype) { if (!strcmp(rtype, "virtual")) {is_virtual = 1; rtype = 0;} else if (!strncmp(rtype, "virtual ",8)) {is_virtual = 1; rtype += 8;} } -- cgit v1.2.3