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:
Rich 2012-10-31 15:55:53 +00:00
parent bbcb9c6935
commit 3a861fb555
2 changed files with 4 additions and 1 deletions

View File

@ -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));

View File

@ -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;