Commit 16eabedf authored by SergeyLuzyanin's avatar SergeyLuzyanin

convertPixToMM

parent 555d2fa7
......@@ -457,7 +457,11 @@ CShape.prototype.handleUpdateGeometry = function()
CShape.prototype.convertPixToMM = function(pix)
{
var drawingObjects = getDrawingObjects_Sp(this);
return drawingObjects ? drawingObjects.convertMetric(pix, 0, 3) : 0;
var _ret = drawingObjects ? drawingObjects.convertMetric(pix, 0, 3) : 0;
if(AscCommon.AscBrowser.isRetina){
_ret *= 2;
}
return _ret;
};
CShape.prototype.getCanvasContext = function()
{
......
......@@ -509,7 +509,11 @@ DrawingObjectsController.prototype.getDrawingDocument = function()
};
DrawingObjectsController.prototype.convertPixToMM = function(pix)
{
return this.drawingObjects ? this.drawingObjects.convertMetric(pix, 0, 3) : 0;
var _ret = this.drawingObjects ? this.drawingObjects.convertMetric(pix, 0, 3) : 0;
if(AscCommon.AscBrowser.isRetina){
_ret *= 2;
}
return _ret;
};
DrawingObjectsController.prototype.setParagraphNumbering = function(Bullet)
......
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