Check for a null when getting checkoff information

Added logic to use the DropCheckoff flag which tell the code that the checkoff goes on last row of the text. (default should be first row of text)
This commit is contained in:
2011-12-12 20:00:27 +00:00
parent 904947bb08
commit 870aa7736e
2 changed files with 13 additions and 5 deletions

View File

@@ -204,7 +204,7 @@ namespace Volian.Controls.Library
MyItemInfo.RefreshItemAnnotations();
ChangeBar = MyItemInfo.HasChangeBar;
CheckOff co = _MyItemInfo.GetCheckOffStep();
if (co != null)
if (co != null && co.UIMark != null)
{
UserCheckOff = true;
UserCheckOffChar = (char)co.UIMark;