Commit 15502a09 authored by Oleg Korshul's avatar Oleg Korshul

context menu on notes (Fix bug 35423)

parent 0d910d73
......@@ -1677,6 +1677,9 @@ function CDrawingDocument()
this.ConvertCoordsToCursorWR = function(x, y, pageIndex, transform)
{
var _word_control = this.m_oWordControl;
if (!_word_control.m_oLogicDocument.IsFocusOnNotes())
{
var dKoef = (this.m_oWordControl.m_nZoomValue * g_dKoef_mm_to_pix / 100);
var __x = x;
......@@ -1690,7 +1693,23 @@ function CDrawingDocument()
var x_pix = (this.SlideCurrectRect.left + __x * dKoef + (_word_control.m_oMainParent.AbsolutePosition.L + _word_control.m_oMainView.AbsolutePosition.L) * g_dKoef_mm_to_pix) >> 0;
var y_pix = (this.SlideCurrectRect.top + __y * dKoef + (_word_control.m_oMainParent.AbsolutePosition.T + _word_control.m_oMainView.AbsolutePosition.T) * g_dKoef_mm_to_pix) >> 0;
return {X : x_pix, Y : y_pix, Error : false};
return {X: x_pix, Y: y_pix, Error: false};
}
else
{
var __x = x;
var __y = y;
if (transform)
{
__x = transform.TransformPointX(x, y);
__y = transform.TransformPointY(x, y);
}
var x_pix = (__x * g_dKoef_mm_to_pix + 10 + (_word_control.m_oMainParent.AbsolutePosition.L + _word_control.m_oNotesContainer.AbsolutePosition.L) * g_dKoef_mm_to_pix) >> 0;
var y_pix = (__y * g_dKoef_mm_to_pix + 10 + (_word_control.m_oMainParent.AbsolutePosition.T + _word_control.m_oNotesContainer.AbsolutePosition.T) * g_dKoef_mm_to_pix) >> 0;
return {X: x_pix, Y: y_pix, Error: false};
}
}
this.ConvertCoordsToCursor3 = function (x, y, isGlobal)
......
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