From 33c283a934656192fada55bf45aec0ca12c16175 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 5 Sep 2018 17:32:59 -0700 Subject: [PATCH] Fix style errors --- MatterControl.Winforms/InspectForm.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/MatterControl.Winforms/InspectForm.cs b/MatterControl.Winforms/InspectForm.cs index 7aa722d2d..3ccf091d9 100644 --- a/MatterControl.Winforms/InspectForm.cs +++ b/MatterControl.Winforms/InspectForm.cs @@ -130,11 +130,10 @@ namespace MatterHackers.MatterControl this.AddItemEnsureAncestors(_inspectedWidget); } - _inspectedWidget.Invalidate(); } - } + private IObject3D _inspectedObject3D = null; public IObject3D InspectedObject3D { @@ -362,7 +361,6 @@ namespace MatterHackers.MatterControl } } - protected override void OnFormClosing(FormClosingEventArgs e) { inspectedSystemWindow.AfterDraw -= systemWindow_AfterDraw; @@ -451,12 +449,10 @@ namespace MatterHackers.MatterControl { TextWidget.DebugShowSize = debugTextWidget.Checked; - foreach(var widget in this.inspectedSystemWindow.Descendants()) { widget.Invalidate(); } - } protected override void OnKeyUp(System.Windows.Forms.KeyEventArgs e) @@ -465,6 +461,7 @@ namespace MatterHackers.MatterControl { this.Inspecting = !this.Inspecting; } + base.OnKeyUp(e); } }