mirror of
https://github.com/c3d/DB48X-on-DM42.git
synced 2024-09-28 03:20:53 +02:00
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:
parent
e6a7d2c1e8
commit
53fbd3724a
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,9 @@ GRAPH_BODY(fraction)
|
||||||
if (!num || !den)
|
if (!num || !den)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
|
if (num->is_negative())
|
||||||
|
num = -num;
|
||||||
|
|
||||||
grob_g ipart = nullptr;
|
grob_g ipart = nullptr;
|
||||||
if (Settings.MixedFractions())
|
if (Settings.MixedFractions())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue