Rename printer variable

This commit is contained in:
John Lewin 2017-09-29 23:55:13 -07:00
parent b40ce9b21e
commit 411fb4e027

View file

@ -87,13 +87,13 @@ namespace MatterHackers.MatterControl
get { return (int)Math.Ceiling(Height / printer.TypeFaceStyle.EmSizeInPixels); }
}
public TextScrollWidget(PrinterConfig printerConfig, List<string> sourceLines)
public TextScrollWidget(PrinterConfig printer, List<string> sourceLines)
{
printer = new TypeFacePrinter("", new StyledTypeFace(ApplicationController.MonoSpacedTypeFace, 12));
printer.DrawFromHintedCache = true;
this.printer = new TypeFacePrinter("", new StyledTypeFace(ApplicationController.MonoSpacedTypeFace, 12));
this.printer.DrawFromHintedCache = true;
this.allSourceLines = sourceLines;
this.visibleLines = sourceLines;
printerConfig.Connection.TerminalLog.HasChanged.RegisterEvent(RecievedNewLine, ref unregisterEvents);
printer.Connection.TerminalLog.HasChanged.RegisterEvent(RecievedNewLine, ref unregisterEvents);
}
private void ConditionalyAddToVisible(string line)