Commit 62058104 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #33389

parent e69bb9ca
...@@ -5571,6 +5571,12 @@ CDocument.prototype.On_DragTextEnd = function(NearPos, bCopy) ...@@ -5571,6 +5571,12 @@ CDocument.prototype.On_DragTextEnd = function(NearPos, bCopy)
*/ */
CDocument.prototype.Get_SelectedContent = function(bUseHistory) CDocument.prototype.Get_SelectedContent = function(bUseHistory)
{ {
// При копировании нам не нужно, чтобы новые классы помечались как созданные в рецензировании, а при перетаскивании
// нужно.
var isTrack = this.Is_TrackRevisions() && !bUseHistory;
if (isTrack)
this.Set_TrackRevisions(false);
var bNeedTurnOffTableId = g_oTableId.m_bTurnOff === false && true !== bUseHistory; var bNeedTurnOffTableId = g_oTableId.m_bTurnOff === false && true !== bUseHistory;
if (!bUseHistory) if (!bUseHistory)
History.TurnOff(); History.TurnOff();
...@@ -5592,6 +5598,9 @@ CDocument.prototype.Get_SelectedContent = function(bUseHistory) ...@@ -5592,6 +5598,9 @@ CDocument.prototype.Get_SelectedContent = function(bUseHistory)
g_oTableId.m_bTurnOff = false; g_oTableId.m_bTurnOff = false;
} }
if (isTrack)
this.Set_TrackRevisions(true);
return SelectedContent; return SelectedContent;
}; };
CDocument.prototype.Can_InsertContent = function(SelectedContent, NearPos) CDocument.prototype.Can_InsertContent = function(SelectedContent, NearPos)
......
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