Print X-Y Plots in the approprate color (Black or Red)
Added logic to keep from failing if an item was not in the sibling list.
This commit is contained in:
		@@ -892,7 +892,7 @@ namespace VEPROMS.CSLA.Library
 | 
			
		||||
			grfx.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
 | 
			
		||||
			grfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
 | 
			
		||||
			grfx.Clear(System.Drawing.Color.Transparent);
 | 
			
		||||
			XYPlots.XYPlot.BlackColor = VlnSettings.DebugMode ? System.Drawing.Color.Red : System.Drawing.Color.Black;
 | 
			
		||||
			XYPlots.XYPlot.BlackColor = MSWordToPDF.OverrideColor == Color.Red ? Color.Red : Color.Black;
 | 
			
		||||
			XYPlots.XYPlot myPlot = new XYPlots.XYPlot(xyPlot);
 | 
			
		||||
			myPlot.SetMargins(0, 0, 0, 0);
 | 
			
		||||
			myPlot.Process(new VG.VGOut_Graphics(grfx));
 | 
			
		||||
 
 | 
			
		||||
@@ -551,7 +551,10 @@ namespace Volian.Controls.Library
 | 
			
		||||
				{
 | 
			
		||||
					EditItem prevChild = nextEditItem.MyPreviousEditItem;
 | 
			
		||||
					EditItem parent = nextEditItem.MyParentEditItem;
 | 
			
		||||
					if(siblingEditItems.Contains(nextEditItem))
 | 
			
		||||
					siblingEditItems.Insert(siblingEditItems.IndexOf(nextEditItem), this);
 | 
			
		||||
					else
 | 
			
		||||
						siblingEditItems.Insert(0, this);
 | 
			
		||||
					MyStepPanel.ItemMoving++;
 | 
			
		||||
					_MyNextEditItem = nextEditItem;
 | 
			
		||||
					nextEditItem._MyPreviousEditItem = this;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user