BUGFIX: JKQTPCALTslashfrac didn't work

This commit is contained in:
jkriege2 2022-10-09 12:27:01 +02:00
parent ddcc9ea462
commit c2e2ca1af7
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -471,7 +471,7 @@ QString JKQTPCoordinateAxis::floattolabel(double data, int past_comma) const {
if (sign<0) res+="-";
else res+="+";
}
if (axisStyle.tickLabelType==JKQTPCALTintslashfrac) {
if (axisStyle.tickLabelType==JKQTPCALTintslashfrac || axisStyle.tickLabelType==JKQTPCALTslashfrac) {
res+=QString("%1/%2").arg(num).arg(denom);
if (intpart!=0 && !tickUnitName.isEmpty()) res="("+res+")";
}