diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-02-20 21:15:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-20 21:15:58 +0100 |
| commit | a878e253adc900b2cac8abe1a1d8f17eb4555f75 (patch) | |
| tree | 6c7ac1a2d315ebab6a9adc7bf7719b73c6399f9f /fluid/Fl_Widget_Type.cxx | |
| parent | fd8170525bb8e2555ac1902ab2d53a064aa9920b (diff) | |
Fluid: fixed missing return value (#398)
...and possible devision by zero
Diffstat (limited to 'fluid/Fl_Widget_Type.cxx')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 0b523ccca..f93ff2c3f 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -513,24 +513,28 @@ static int vars_x_cb(const Fluid_Coord_Input*, void *v) { Fl_Type *t = (Fl_Type*)v; if (t->is_widget()) return ((Fl_Widget_Type*)t)->o->x(); + return 0; } static int vars_y_cb(const Fluid_Coord_Input*, void *v) { Fl_Type *t = (Fl_Type*)v; if (t->is_widget()) return ((Fl_Widget_Type*)t)->o->y(); + return 0; } static int vars_w_cb(const Fluid_Coord_Input*, void *v) { Fl_Type *t = (Fl_Type*)v; if (t->is_widget()) return ((Fl_Widget_Type*)t)->o->w(); + return 0; } static int vars_h_cb(const Fluid_Coord_Input*, void *v) { Fl_Type *t = (Fl_Type*)v; if (t->is_widget()) return ((Fl_Widget_Type*)t)->o->h(); + return 0; } static int vars_px_cb(const Fluid_Coord_Input*, void *v) { |
