Commit c8409796 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed issue with opening pdf documents.

parent e385c6f3
......@@ -848,7 +848,7 @@ CHistory.prototype =
Have_Changes : function(IsNotUserSave)
{
if (this.Document.IsViewModeInReview())
if (!this.Document || this.Document.IsViewModeInReview())
return false;
var checkIndex = (this.Is_UserSaveMode() && !IsNotUserSave) ? this.UserSavedIndex : this.SavedIndex;
......
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