This commit is contained in:
		@@ -215,8 +215,10 @@ namespace Volian.Controls.Library
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			// see if change in subsections to be displayed, i.e. if the user made a change to editable data
 | 
								// see if change in subsections to be displayed, i.e. if the user made a change to editable data
 | 
				
			||||||
			// on the section properties form, we may have to display steps or remove steps.  By design,
 | 
								// on the section properties form, we may have to display steps or remove steps.  By design,
 | 
				
			||||||
			// steps are the first children from a section.
 | 
								// steps are the first children from a section. Also, this will only occur if the format has
 | 
				
			||||||
			if (MyItemInfo.IsSection && MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)
 | 
								// metasections AND there are subsections.
 | 
				
			||||||
 | 
								if (MyItemInfo.IsSection && MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections
 | 
				
			||||||
 | 
									&& MyItemInfo.Sections != null && MyItemInfo.Sections.Count > 0)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				// find out what the editable flag is to determine if change.
 | 
									// find out what the editable flag is to determine if change.
 | 
				
			||||||
				bool showSteps = MyItemInfo.MyConfig is SectionConfig && (MyItemInfo.MyConfig as SectionConfig).SubSection_Edit == "Y";
 | 
									bool showSteps = MyItemInfo.MyConfig is SectionConfig && (MyItemInfo.MyConfig as SectionConfig).SubSection_Edit == "Y";
 | 
				
			||||||
@@ -2355,11 +2357,16 @@ namespace Volian.Controls.Library
 | 
				
			|||||||
					location = new PointF(ri.MyStepRTB.Left + ri.MyStepRTB.Width + 2, ri.MyStepRTB.Top);
 | 
										location = new PointF(ri.MyStepRTB.Left + ri.MyStepRTB.Width + 2, ri.MyStepRTB.Top);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				CheckOff co = MyItemInfo.GetCheckOffStep();
 | 
									CheckOff co = MyItemInfo.GetCheckOffStep();
 | 
				
			||||||
				if (co != null)
 | 
									// There may have been a data change in the setting of which checkoff to use (property 
 | 
				
			||||||
 | 
									// change in the config data), or whether a checkoff is used at all. Need to set the 
 | 
				
			||||||
 | 
									// 'UserCheckOff' or 'UserCheckOffChar' properties to reflect that.
 | 
				
			||||||
 | 
									if (co != null && co.UIMark != null)
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
 | 
										UserCheckOffChar = (char)co.UIMark;		
 | 
				
			||||||
					Font myFont = new Font("VolianDraw", MyItemInfo.MyTab.MyFont.WindowsFont.Size);
 | 
										Font myFont = new Font("VolianDraw", MyItemInfo.MyTab.MyFont.WindowsFont.Size);
 | 
				
			||||||
					g.DrawString(UserCheckOffChar.ToString(), myFont, Brushes.DarkGreen, new RectangleF(location, MyStepPanel.MyStepPanelSettings.NumberSize), StringFormat.GenericDefault);
 | 
										g.DrawString(UserCheckOffChar.ToString(), myFont, Brushes.DarkGreen, new RectangleF(location, MyStepPanel.MyStepPanelSettings.NumberSize), StringFormat.GenericDefault);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
									else if (co == null) UserCheckOff = false;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user