fractions: Do not render two negative signs in graphical mode

For `1 2 / NEG`, we want only one negative sign to show up.
Do not draw the negative sign for the numerator.

Fixes: #954, #955

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2024-05-30 00:52:44 +02:00
parent e6a7d2c1e8
commit 53fbd3724a

View file

@ -111,6 +111,9 @@ GRAPH_BODY(fraction)
if (!num || !den)
return nullptr;
if (num->is_negative())
num = -num;
grob_g ipart = nullptr;
if (Settings.MixedFractions())
{