Changeset 6030 for trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization
- Timestamp:
- 04/19/11 13:35:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfo.cs
r6029 r6030 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) { 50 lock (lockObject) { 51 icon = (Bitmap)original.icon.Clone(); 52 } 53 } 49 if (original.icon != null) icon = (Bitmap)original.icon.Clone(); 54 50 55 51 connectorNames = new List<string>(original.connectorNames); … … 57 53 } 58 54 public override IDeepCloneable Clone(Cloner cloner) { 59 return new OperatorShapeInfo(this, cloner); 55 lock (lockObject) { 56 return new OperatorShapeInfo(this, cloner); 57 } 60 58 } 61 59
Note: See TracChangeset
for help on using the changeset viewer.