aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-05-01 09:08:33 +0000
committerPo Lu2022-05-01 09:08:33 +0000
commit6984f325bdbaf15b1190d0d03b01eebe9cfbbb71 (patch)
treeee96ebef3ac64eab2294c0dbf7c2b42543f9258a /src
parent7c50fb248d83ac02331fa717ebad96f1d56d5575 (diff)
downloademacs-6984f325bdbaf15b1190d0d03b01eebe9cfbbb71.tar.gz
emacs-6984f325bdbaf15b1190d0d03b01eebe9cfbbb71.zip
Fix specifying zero as a size for fonts on Haiku
* src/haiku_support.cc (MessageReceived): Set `size_specified' correctly.
Diffstat (limited to 'src')
-rw-r--r--src/haiku_support.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index 67b7e143bfb..9e31e1b870f 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -2519,15 +2519,13 @@ class EmacsFontSelectionDialog : public BWindow
2519 else if (msg->what == B_OK 2519 else if (msg->what == B_OK
2520 && font_style_pane.CurrentSelection () >= 0) 2520 && font_style_pane.CurrentSelection () >= 0)
2521 { 2521 {
2522 text = size_entry.Text ();
2523
2522 rq.cancel = false; 2524 rq.cancel = false;
2523 rq.family_idx = font_family_pane.CurrentSelection (); 2525 rq.family_idx = font_family_pane.CurrentSelection ();
2524 rq.style_idx = font_style_pane.CurrentSelection (); 2526 rq.style_idx = font_style_pane.CurrentSelection ();
2525
2526 text = size_entry.Text ();
2527 rq.size = atoi (text); 2527 rq.size = atoi (text);
2528 2528 rq.size_specified = rq.size > 0 || strlen (text);
2529 if (rq.size > 0)
2530 rq.size_specified = true;
2531 2529
2532 write_port (comm_port, 0, &rq, sizeof rq); 2530 write_port (comm_port, 0, &rq, sizeof rq);
2533 } 2531 }