Fixed null reference error when inserting a figure off of a figure
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user