Commit 9cdf9b23 authored by Alexey.Musinov's avatar Alexey.Musinov

fix for ios

parent 02f36768
...@@ -630,6 +630,16 @@ ...@@ -630,6 +630,16 @@
this.clearRect(0, 0, this.getWidth(), this.getHeight()); this.clearRect(0, 0, this.getWidth(), this.getHeight());
return this; return this;
}; };
DrawingContext.prototype.AddClipRect = function () {
return this;
};
DrawingContext.prototype.RemoveClipRect = function (x, y, w, h) {
return this;
};
DrawingContext.prototype.save = function () { DrawingContext.prototype.save = function () {
this.nctx["PD_Save"](); this.nctx["PD_Save"]();
......
...@@ -488,24 +488,27 @@ ...@@ -488,24 +488,27 @@
if (window['IS_NATIVE_EDITOR']) if (window['IS_NATIVE_EDITOR'])
{ {
var result = window["native"]["openFileCommand"](sFileUrl, changesUrl, Signature); var stream = window["native"]["openFileCommand"](sFileUrl, changesUrl, Signature);
var url; //получаем url к папке с файлом
var nIndex = sFileUrl.lastIndexOf("/"); var url;
url = (-1 !== nIndex) ? sFileUrl.substring(0, nIndex + 1) : sFileUrl; var nIndex = sFileUrl.lastIndexOf("/");
if (0 < result.length) url = (-1 !== nIndex) ? sFileUrl.substring(0, nIndex + 1) : sFileUrl;
{
oResult.bSerFormat = Signature === result.substring(0, Signature.length); if (stream) {
oResult.data = result; oResult.bSerFormat = checkStreamSignature(stream, Signature);
oResult.url = url;
} if (oResult.bSerFormat) {
else oResult.data = stream;
{ } else {
bError = true; oResult.data = stream;
} }
} else {
bEndLoadFile = true; bError = true;
onEndOpen(); }
bEndLoadFile = true;
onEndOpen();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment