Ensure dashed line starts at right edge

This commit is contained in:
SiboVG 2023-07-21 11:30:57 +02:00
parent d4ac8c9c4f
commit 2d2e4de097

View File

@ -342,7 +342,10 @@ public class FinMarkingGuide extends JPanel {
g2.setStroke(dashedStroke); g2.setStroke(dashedStroke);
// Draw dashed line // Draw dashed line
g2.drawLine(x, yStart, x + width, yStart); // We draw from the aft end to the fore end to ensure that the side with no arrow
// point has the dashed line touching the marking guide edge
// (is useful for marking the fin position)
g2.drawLine(x + width, yStart, x, yStart);
// Reset stroke // Reset stroke
g2.setStroke(thinStroke); g2.setStroke(thinStroke);