mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 10:05:47 +08:00
BUGFIX: JKQTPCALTslashfrac didn't work
This commit is contained in:
parent
ddcc9ea462
commit
c2e2ca1af7
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.4 KiB |
@ -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+")";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user