Ensure dashed line starts at right edge
This commit is contained in:
parent
d4ac8c9c4f
commit
2d2e4de097
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user