Status: New
Owner: ----

New issue 187 by berthold...@bdaum.de: general shapes are not filled correctly under SWT
http://code.google.com/p/piccolo2d/issues/detail?id=187

What steps will reproduce the problem?
1.Create a PSWTPath with a polyline
2.Set different stroke and background colors
3.Observe the result

Obviously, the fill(final Shape s) method in SWTGraphics2D calls the wrong sub-method. The fix (bd2) is:

...
            Path p = (Path) SHAPE_CACHE.get(s);
            if (p == null) {
                p = pathIterator2Path(s.getPathIterator(null));
                SHAPE_CACHE.put(s, p);
            }
//            drawPath(p);
            fillPath(p); // bd2
        }
    }


--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to