# Quick Question: Fixing Bugs

**URL:** <https://racket.discourse.group/t/quick-question-fixing-bugs/2756>\
**Category:** Questions & Answers\
**Created:** [March 2, 2024, 1:18pm UTC](https://racket.discourse.group/t/quick-question-fixing-bugs/2756 "2024-03-02T13:18:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakgatviooldoos](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/bakgatviooldoos/32/1381_2.png) [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Post date:** [March 2, 2024, 1:18pm UTC](https://racket.discourse.group/t/quick-question-fixing-bugs/2756/1 "2024-03-02T13:18:13Z")

</div>

Hi, Racket Discourse.

I found a bug in the code for the `append-editor-font-menu-items` procedure from `racket/gui`. The functionality for making fonts smaller by one size is missing a negative sign.

Compare the increment,

```scheme
(add-change-size bigger
                 '("+1" "+2" "+4" "+8" "+16" "+32")
                 '(1 2 4 8 16 32)
                 '(1 1 1 1 1 1))

```

as opposed to the decrement.

```scheme
(add-change-size smaller
                 '("-1" "-2" "-4" "-8" "-16" "-32")
                 '(1 -2 -4 -8 -16 -32)
                 '(1 1 1 1 1 1))

```

I found these snippets in the `gui/gui-lib/mred/private/editor.rkt` file in [here](https://github.com/racket/gui/blob/2f552b6ce9910d425261b1d18f9201f0acf9daf9/gui-lib/mred/private/editor.rkt#L45).

What is the etiquette for such a situation? I've never reported/fixed a bug before.

---

<div class="post-metadata">

**Author:** ![benknoble](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/benknoble/32/16_2.png) [@benknoble](https://racket.discourse.group/u/benknoble)\
**Post date:** [March 2, 2024, 1:33pm UTC](https://racket.discourse.group/t/quick-question-fixing-bugs/2756/2 "2024-03-02T13:33:43Z")

</div>

I would think filing an “Issue” on GitHub is fine. If you have time to contribute a fix, you could send a PR.

---

<div class="post-metadata">

**Author:** ![bakgatviooldoos](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/bakgatviooldoos/32/1381_2.png) [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Post date:** [March 2, 2024, 1:37pm UTC](https://racket.discourse.group/t/quick-question-fixing-bugs/2756/3 "2024-03-02T13:37:00Z")

</div>

Thanks, @benknoble. Sometimes a little hand-holding goes quite far 💯

---

<div class="post-metadata">

**Author:** ![EmEf](https://avatars.discourse-cdn.com/v4/letter/e/53a042/32.png) [@EmEf](https://racket.discourse.group/u/EmEf)\
**Post date:** [March 2, 2024, 1:38pm UTC](https://racket.discourse.group/t/quick-question-fixing-bugs/2756/4 "2024-03-02T13:38:54Z")

</div>

1. You could just open an issue.

2. Or, you could submit a pull request.

---

<div class="post-metadata">

**Author:** ![EmEf](https://avatars.discourse-cdn.com/v4/letter/e/53a042/32.png) [@EmEf](https://racket.discourse.group/u/EmEf)\
**Post date:** [March 2, 2024, 1:48pm UTC](https://racket.discourse.group/t/quick-question-fixing-bugs/2756/5 "2024-03-02T13:48:26Z")

</div>

[

[A guide for infrequent contributors to Racket](https://www.greghendershott.com/2013/04/a-guide-for-infrequent-contributors-to-racket.html)  
[greghendershott.com](https://www.greghendershott.com/2013/04/a-guide-for-infrequent-contributors-to-racket.html)

[![favicon.ico](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/e/ede29e99b37111d42cf27d8dd2e9b459ed14d109.png)](https://www.greghendershott.com/2013/04/a-guide-for-infrequent-contributors-to-racket.html)

]([A guide for infrequent contributors to Racket](https://www.greghendershott.com/2013/04/a-guide-for-infrequent-contributors-to-racket.html))

---

<div class="post-metadata">

**Author:** ![bakgatviooldoos](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/bakgatviooldoos/32/1381_2.png) [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Post date:** [March 2, 2024, 2:12pm UTC](https://racket.discourse.group/t/quick-question-fixing-bugs/2756/6 "2024-03-02T14:12:08Z")

</div>

Wonderful, thank you, @EmEf.
