Changeset 6031
- Timestamp:
- 04/19/11 13:37:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfo.cs
r6030 r6031 47 47 //mkommend: necessary because cloning a Bitmap is not threadsafe 48 48 //see http://stackoverflow.com/questions/1851292/invalidoperationexception-object-is-currently-in-use-elsewhere for further information 49 if (original.icon != null) icon = (Bitmap)original.icon.Clone(); 49 if (original.icon != null) { 50 lock (original.lockObject) { 51 icon = (Bitmap)original.icon.Clone(); 52 } 53 } 50 54 51 55 connectorNames = new List<string>(original.connectorNames); … … 53 57 } 54 58 public override IDeepCloneable Clone(Cloner cloner) { 55 lock (lockObject) { 56 return new OperatorShapeInfo(this, cloner); 57 } 59 return new OperatorShapeInfo(this, cloner); 58 60 } 59 61
Note: See TracChangeset
for help on using the changeset viewer.