B2017-144 If MSWord sections have text in multiple colors or the override color is not red change the text to the override color.
This commit is contained in:
		@@ -979,7 +979,9 @@ namespace VEPROMS.CSLA.Library
 | 
			
		||||
				sel = MyApp.Selection;
 | 
			
		||||
				sel.WholeStory();
 | 
			
		||||
				//sel.Range.Font.Color = (LBWdColor)WordColor(PrintOverride.OverrideTextColor(System.Drawing.Color.Black));
 | 
			
		||||
				sel.Range.Font.Color = (LBWdColor)WordColor(OverrideColor == System.Drawing.Color.Transparent ? System.Drawing.Color.Black : OverrideColor);
 | 
			
		||||
				//Console.WriteLine("'{0}' Colors Sel '{1}' Override '{2}' Transparent '{3}' Black '{4}' Red '{5}'", sect.DisplayNumber, sel.Range.Font.Color, OverrideColor, System.Drawing.Color.Transparent, System.Drawing.Color.Black, System.Drawing.Color.Red);
 | 
			
		||||
				if(sel.Range.Font.Color != (LBWdColor)9999999 || OverrideColor == System.Drawing.Color.Red)// B2017-144 If the font color is 9999999 then the color is mixed, and if the override color isn't red, don't change the color.
 | 
			
		||||
					sel.Range.Font.Color = (LBWdColor)WordColor(OverrideColor == System.Drawing.Color.Transparent ? System.Drawing.Color.Black : OverrideColor);
 | 
			
		||||
				sect.MSWordPageCount = myDoc.Length;
 | 
			
		||||
				fileName = CreatePDF(fileName, openPdf,MSWordToPDF.DebugStatus);
 | 
			
		||||
				if (DocReplace != null)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user