/// <summary> /// Rollback this operation (occurs when a user undoes the last edit). /// </summary> internal override void Undo() { base.OnRollback(); // Move the label's reference position back to where it was originally. m_Label.SetPolPosition(m_OldPosition); }
/// <summary> /// Rollback this operation (occurs when a user undoes the last edit). /// </summary> internal override void Undo() { base.OnRollback(); // Move the label's text back to where it was originally. m_Text.Move(m_OldPosition); // Move polygon reference position too if its defined if (m_OldPolPosition != null) { m_Text.SetPolPosition(m_OldPolPosition); } else { m_Text.RecalculateEnclosingPolygon(); } }