From 61fb41fd7f8a09d5fe9dad3021f177f8d2c7cf5f Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 20 Aug 2005 20:30:56 +0000 Subject: This commit fixes one aspect of bug STR #984. However, since Allesandro took his patch back, I would like to first run this one by the developers before I fix the rest on the list. This patch is different to Alessandro's in that it checks if data was actually changed and the n setting the modflag. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Function_Type.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fluid') diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index 3f4ea2e11..539fb9b09 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -181,12 +181,18 @@ void Fl_Function_Type::open() { if (*c && *d != '(') { message = "must be name(arguments), try again:"; continue; } + int mod = 0; c = f_return_type_input->value(); message = c_check(c); if (message) continue; + if (name() && strcmp(f_name_input->value(), name())) mod = 1; name(f_name_input->value()); + if (return_type && strcmp(return_type, c)) mod = 1; storestring(c, return_type); + if (public_ != f_public_button->value()) mod = 1; public_ = f_public_button->value(); + if (cdecl_ != f_c_button->value()) mod = 1; cdecl_ = f_c_button->value(); + if (mod) set_modflag(1); break; } BREAK2: -- cgit v1.2.3