Fix null reference error during reflow
- Issue MatterHackers/MCCentral#2140 Investigate AddToQueueFromLibraryButtonAddsItemsToQueue
This commit is contained in:
parent
23c4ae8488
commit
fb71cd2150
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
|
||||
public ListViewItemBase AddItem(ListViewItem item)
|
||||
{
|
||||
reflowingContent = true;
|
||||
|
||||
var iconView = new IconViewItem(item, this.ThumbWidth, this.ThumbHeight);
|
||||
iconView.Margin = new BorderDouble(leftRightMargin, 0);
|
||||
|
||||
|
|
@ -139,6 +141,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
|
||||
AddColumnAndChild(iconView);
|
||||
|
||||
reflowingContent = false;
|
||||
|
||||
return iconView;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue