diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-27 12:15:25 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-27 12:15:25 +0100 |
| commit | 73bd4a53dd54c300ffa539f23a521083172d6253 (patch) | |
| tree | 85142c17f42e03cc95c495be0eaee51fe402ab75 | |
| parent | bb5cb5b6d4423cf132054422fbcb489198f2540b (diff) | |
Fix position of 1-button Fl_Message windows
| -rw-r--r-- | src/Fl_Message.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Message.cxx b/src/Fl_Message.cxx index a2d59fc9d..a198d5e73 100644 --- a/src/Fl_Message.cxx +++ b/src/Fl_Message.cxx @@ -367,7 +367,7 @@ int Fl_Message::innards(const char *fmt, va_list ap, const char *b0, const char window_->position(form_x_, form_y_); form_x_ = form_y_ = form_position_ = 0; } else if (enable_hotspot_) - window_->hotspot(button_[0]); + window_->hotspot(b0 ? button_[0] : button_[1]); else window_->free_position(); |
