diff --git a/org.eclipse.draw2d/src/org/eclipse/draw2d/SWTGraphics.java b/org.eclipse.draw2d/src/org/eclipse/draw2d/SWTGraphics.java index 125dcae27..b504fbd7a 100644 --- a/org.eclipse.draw2d/src/org/eclipse/draw2d/SWTGraphics.java +++ b/org.eclipse.draw2d/src/org/eclipse/draw2d/SWTGraphics.java @@ -306,7 +306,7 @@ protected final void checkPaint() { LineAttributes lineAttributes = currentState.lineAttributes; if (!appliedState.lineAttributes.equals(lineAttributes)) { if (getAdvanced()) { - gc.setLineAttributes(lineAttributes); + gc.setLineAttributes(clone(lineAttributes)); // Clone lineAttributes because on Windows hi-dpi the line width may be increased } else { gc.setLineWidth((int) lineAttributes.width); gc.setLineCap(lineAttributes.cap);