From 4022888a5e7444826fce9a9a6e8f41599bb655c3 Mon Sep 17 00:00:00 2001 From: sawilde Date: Sun, 22 Feb 2015 15:08:55 +1100 Subject: [PATCH] do not find fileid of a point if already known --- main/OpenCover.Framework/Persistance/BasePersistance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/OpenCover.Framework/Persistance/BasePersistance.cs b/main/OpenCover.Framework/Persistance/BasePersistance.cs index f17be55a3..10d7101d3 100644 --- a/main/OpenCover.Framework/Persistance/BasePersistance.cs +++ b/main/OpenCover.Framework/Persistance/BasePersistance.cs @@ -393,7 +393,7 @@ from method in @class.Methods.Where(x => !x.ShouldSerializeSkippedDueTo()) private static void MapFileReferences(IEnumerable points, IDictionary filesDictionary) { - foreach (var pt in points) + foreach (var pt in points.Where(p => p.FileId == 0)) { uint fileid; filesDictionary.TryGetValue(pt.Document ?? "", out fileid);