improve line zoom

This commit is contained in:
Branislav Stojkovic
2016-12-29 21:18:27 +01:00
parent c200a2ffbf
commit ea210d816d
3 changed files with 2 additions and 1 deletions
@@ -438,7 +438,8 @@ class G2DWrapper extends Graphics2D implements IDrawingObserver {
public void setStroke(Stroke s) { public void setStroke(Stroke s) {
if (this.zoom > 1 && s.getClass() == BasicStroke.class) { if (this.zoom > 1 && s.getClass() == BasicStroke.class) {
BasicStroke bs = (BasicStroke) s; BasicStroke bs = (BasicStroke) s;
s = ObjectCache.getInstance().fetchBasicStroke((float) (bs.getLineWidth() / zoom)); if (bs.getLineWidth() == 1)
s = ObjectCache.getInstance().fetchBasicStroke((float) (bs.getLineWidth() / zoom));
} }
canvasGraphics.setStroke(s); canvasGraphics.setStroke(s);
} }
Binary file not shown.
Binary file not shown.