Fix specifying zero as a size for fonts on Haiku
* src/haiku_support.cc (MessageReceived): Set `size_specified' correctly.
This commit is contained in:
parent
7c50fb248d
commit
6984f325bd
1 changed files with 3 additions and 5 deletions
|
@ -2519,15 +2519,13 @@ class EmacsFontSelectionDialog : public BWindow
|
|||
else if (msg->what == B_OK
|
||||
&& font_style_pane.CurrentSelection () >= 0)
|
||||
{
|
||||
text = size_entry.Text ();
|
||||
|
||||
rq.cancel = false;
|
||||
rq.family_idx = font_family_pane.CurrentSelection ();
|
||||
rq.style_idx = font_style_pane.CurrentSelection ();
|
||||
|
||||
text = size_entry.Text ();
|
||||
rq.size = atoi (text);
|
||||
|
||||
if (rq.size > 0)
|
||||
rq.size_specified = true;
|
||||
rq.size_specified = rq.size > 0 || strlen (text);
|
||||
|
||||
write_port (comm_port, 0, &rq, sizeof rq);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue