Merge pull request #240 from mono/revert-239-master
Revert "SKSvg - Fixed SVG not loaded when viewport / viewbox not specified"
This commit is contained in:
Коммит
aafe6a79fb
|
@ -93,15 +93,6 @@ namespace SkiaSharp
|
||||||
{
|
{
|
||||||
ViewBox = ReadRectangle(viewBoxA.Value);
|
ViewBox = ReadRectangle(viewBoxA.Value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
var widthA = svg.Attribute("width");
|
|
||||||
var heightA = svg.Attribute("height");
|
|
||||||
var width = ReadNumber(widthA);
|
|
||||||
var height = ReadNumber(heightA);
|
|
||||||
var size = new SKSize(width, height);
|
|
||||||
ViewBox = SKRect.Create(size);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (CanvasSize.IsEmpty)
|
if (CanvasSize.IsEmpty)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче