diff options
| author | Greg Ercolano <erco@seriss.com> | 2017-10-28 21:23:35 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2017-10-28 21:23:35 +0000 |
| commit | 9c2b0d743f2c3ecd7f1475c0ccf2c9f6e5805436 (patch) | |
| tree | e38628198a5c908e6b7a374a18624fb328de225a /fluid | |
| parent | 2a3e86921094748dc1188e1bfe073c6fbdfec996 (diff) | |
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
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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;} } |
