Only set MyStepPanel.LastAdjust if MyStepPanel isn't null

After StepRTB is resized verify that text has not scrolled out of view
This commit is contained in:
Rich
2011-08-09 20:12:40 +00:00
parent 33b03c0a9a
commit 6047e40ba0
2 changed files with 5 additions and 1 deletions

View File

@@ -222,7 +222,7 @@ namespace Volian.Controls.Library
//private string _LastMethod = "";
internal void LastMethodsPush(string str)
{
MyStepPanel._LastAdjust = str;
if(MyStepPanel != null)MyStepPanel._LastAdjust = str;
_LastMethods.Push(str);
}
internal string LastMethodsPop()