Graphs: Skip the X axis arrowhead also

put the check in the right place
This commit is contained in:
zzz
2024-06-24 13:52:44 -04:00
parent a2dc80e089
commit e4aab76045

View File

@@ -392,6 +392,11 @@ public class RrdGraph implements RrdGraphConstants {
xaxisColor, stroke);
worker.drawLine(im.xorigin, im.yorigin + 4, im.xorigin, im.yorigin - im.ysize - 4,
yaxisColor, stroke);
// I2P skip arrowheads if transparent
if (((Color)arrowColor).getAlpha() == 0)
return;
//Do X axis arrow
double[] Xarrow_x = {
im.xorigin + im.xsize + 4,
@@ -404,10 +409,6 @@ public class RrdGraph implements RrdGraphConstants {
};
worker.fillPolygon(Xarrow_x, im.yorigin + 3.0, Xarrow_y, arrowColor);
// I2P skip arrowheads if transparent
if (((Color)arrowColor).getAlpha() == 0)
return;
//Do y axis arrow
double[] Yarrow_x = {
im.xorigin - 3,