Fixed null reference error when inserting a figure off of a figure

This commit is contained in:
2016-06-01 14:49:59 +00:00
parent 0166b06209
commit 6ed306e8b9
3 changed files with 18 additions and 10 deletions

View File

@@ -124,7 +124,7 @@ namespace Volian.Controls.Library
_MyStepRTB.Font = MyStepData.Font.WindowsFont;
ItemWidth = (int)GetTableWidth(_MyStepRTB.Font, MyItemInfo.MyContent.Text, true);
ItemLocation = new Point(50, _MyParentEditItem.Bottom);
ItemLocation = TableLocation(_MyParentEditItem, MyStepSectionLayoutData, ItemWidth);
ItemLocation = TableLocation(MyStepSectionLayoutData, ItemWidth);
}
override public void SetToolTip(string tip)
@@ -604,7 +604,7 @@ namespace Volian.Controls.Library
if (wNew > ItemWidth)
{
ItemWidth = wNew;
ItemLocation = TableLocation(MyParentEditItem, MyStepSectionLayoutData, wNew);
ItemLocation = TableLocation(MyStepSectionLayoutData, wNew);
}
}
else
@@ -613,7 +613,7 @@ namespace Volian.Controls.Library
if (ItemWidth != newwidth)
{
ItemWidth = newwidth;
ItemLocation = TableLocation(MyParentEditItem, MyStepSectionLayoutData, newwidth);
ItemLocation = TableLocation(MyStepSectionLayoutData, newwidth);
}
}
}