Fix AppendPath so that it works for paths with native backends
This commit is contained in:
Родитель
6702c3bc38
Коммит
6402eedd7c
|
@ -287,7 +287,7 @@ namespace Xwt.Drawing
|
|||
/// </param>
|
||||
public void AppendPath (DrawingPath p)
|
||||
{
|
||||
if (!(handler is VectorImageRecorderContextHandler)) {
|
||||
if (!(handler is VectorImageRecorderContextHandler) && (p.Backend is VectorContextBackend)) {
|
||||
var c = (VectorContextBackend)p.Backend;
|
||||
VectorImageRecorderContextHandler.Draw (ToolkitEngine, null, (DrawingPathBackendHandler)handler, Backend, c.ToVectorImageData ());
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче