From aa5785f9a8869fb4b3f0df15d042a4b08981c191 Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Thu, 22 Aug 2024 16:31:35 +0100 Subject: [PATCH] fix: corrects if check post refactor --- .../Helpers/DisplayValueExtractor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Converters/Revit/Speckle.Converters.RevitShared/Helpers/DisplayValueExtractor.cs b/Converters/Revit/Speckle.Converters.RevitShared/Helpers/DisplayValueExtractor.cs index 024963de8..6d752b925 100644 --- a/Converters/Revit/Speckle.Converters.RevitShared/Helpers/DisplayValueExtractor.cs +++ b/Converters/Revit/Speckle.Converters.RevitShared/Helpers/DisplayValueExtractor.cs @@ -165,7 +165,7 @@ private bool SkipGeometry(DB.GeometryObject geomObj, DB.Element element) } DB.GraphicsStyle? graphicsStyle = null; - if (_graphicStyleCache.ContainsKey(geomObj.GraphicsStyleId.ToString().NotNull())) + if (!_graphicStyleCache.ContainsKey(geomObj.GraphicsStyleId.ToString().NotNull())) { graphicsStyle = (DB.GraphicsStyle)element.Document.GetElement(geomObj.GraphicsStyleId); _graphicStyleCache[geomObj.GraphicsStyleId.ToString().NotNull()] = graphicsStyle;