Commit e2bd1aba authored by SergeyLuzyanin's avatar SergeyLuzyanin

notes

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