B2016-165 – Added function to get an item in list given an index
B2016-165 – fix crash on Section Properties when changing format and new format has less docstyles than newly selected format
This commit is contained in:
@@ -610,7 +610,7 @@ namespace VEPROMS
|
||||
}
|
||||
if (oldSelIndx > newDocStyles.Count)
|
||||
{
|
||||
string msg = string.Format("The section type that is set is not available in the new format, it was reset to {0}. Verify that it is appropriate.", newDocStyles[0].Name);
|
||||
string msg = string.Format("The section type that is set is not available in the new format, it was reset to '{0}'. Verify that it is appropriate.", newDocStyles.GetDocStyleItem(0).Name);
|
||||
MessageBox.Show(msg, "Non-existent section");
|
||||
selindx = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user