Fix crash when ui refreshes during async opperation
This commit is contained in:
parent
d96c388257
commit
deca6799b8
1 changed files with 1 additions and 5 deletions
|
|
@ -119,12 +119,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
PointSize = theme.DefaultFontSize,
|
||||
};
|
||||
|
||||
if (keyValues.ContainsKey(item))
|
||||
if (!keyValues.ContainsKey(item))
|
||||
{
|
||||
throw new Exception("Duplcate item entry");
|
||||
}
|
||||
else
|
||||
{
|
||||
keyValues.Add(item, node);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue