Added code to remove a font command combined with a comment in a link in StripRtfCommands
The initialization code was changed so that an invalid transition will not cause a crash If a MRU Item is deleted, and then selected from the menu, a message box will be displayed.
This commit is contained in:
@@ -126,7 +126,11 @@ namespace Volian.Controls.Library
|
||||
// if modify, use the first transition to, _CurTrans
|
||||
// This item will be either a procedure, section or step, never a docversion
|
||||
ItemInfo selitm = _CurTrans==null?_CurItemFrom:_CurTrans.MyItemToID;
|
||||
|
||||
// If this points to an invalid transtion, make it point to itself.
|
||||
if (selitm.PreviousID == null && selitm.ItemPartCount == 0 && selitm.ItemDocVersionCount == 0)
|
||||
{
|
||||
selitm = _CurItemFrom;
|
||||
}
|
||||
ItemInfo tmpitm = selitm;
|
||||
ItemInfo secitm = null;
|
||||
|
||||
|
Reference in New Issue
Block a user