diff --git a/src/ca/mcgill/cs/jetuml/viewers/edges/SegmentedEdgeViewer.java b/src/ca/mcgill/cs/jetuml/viewers/edges/SegmentedEdgeViewer.java index 92c9c7827..aa6f17f8d 100644 --- a/src/ca/mcgill/cs/jetuml/viewers/edges/SegmentedEdgeViewer.java +++ b/src/ca/mcgill/cs/jetuml/viewers/edges/SegmentedEdgeViewer.java @@ -109,6 +109,11 @@ private static void drawString(GraphicsContext pGraphics, Point2D pEndPoint1, Po textY = bounds.getHeight() - textDimensions(pString).height()/2; pGraphics.setTextBaseline(VPos.CENTER); pGraphics.setTextAlign(TextAlignment.CENTER); + } + else + { + pGraphics.setTextBaseline(VPos.TOP); + pGraphics.setTextAlign(TextAlignment.LEFT); } pGraphics.fillText(pString, textX, textY); pGraphics.translate(-bounds.getX(), -bounds.getY());