Commit e2bd1aba authored by SergeyLuzyanin's avatar SergeyLuzyanin

notes

parent 71a5071b
......@@ -3283,7 +3283,7 @@ CPresentation.prototype =
oCurSlide.graphicObjects.resetSelection(true, false);
}
if(oCurSlide.notesShape){
oCurSlide.notesShape.selectionSetStart(e, X, Y, this.CurPage);
oCurSlide.notesShape.selectionSetStart(e, X, Y, 0);
this.Notes_UpdateSelectionState();
}
}
......@@ -3294,7 +3294,7 @@ CPresentation.prototype =
var oCurSlide = this.Slides[this.CurPage];
if(oCurSlide){
if(oCurSlide.notesShape){
oCurSlide.notesShape.selectionSetEnd(e, X, Y, this.CurPage);
oCurSlide.notesShape.selectionSetEnd(e, X, Y, 0);
this.Notes_UpdateSelectionState();
}
}
......@@ -3305,8 +3305,8 @@ CPresentation.prototype =
var oCurSlide = this.Slides[this.CurPage];
if(oCurSlide){
if(oCurSlide.notesShape){
if(e.IsPressed){
oCurSlide.notesShape.selectionSetEnd(e, X, Y, this.CurPage);
if(e.IsLocked){
oCurSlide.notesShape.selectionSetEnd(e, X, Y, 0);
this.Notes_UpdateSelectionState();
}
}
......
......@@ -458,6 +458,10 @@ CShape.prototype.recalculate = function ()
{
if(this.bDeleted || !this.parent)
return;
if(this.parent.getObjectType() === AscDFH.historyitem_type_Notes){
return;
}
var check_slide_placeholder = !this.isPlaceholder() || (this.parent && (this.parent.getObjectType() === AscDFH.historyitem_type_Slide));
AscFormat.ExecuteNoHistory(function(){
......
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