diff --git a/Source/QuestPDF/Infrastructure/PageContext.cs b/Source/QuestPDF/Infrastructure/PageContext.cs index 385dcfb..77ed306 100644 --- a/Source/QuestPDF/Infrastructure/PageContext.cs +++ b/Source/QuestPDF/Infrastructure/PageContext.cs @@ -39,7 +39,7 @@ namespace QuestPDF.Infrastructure public DocumentLocation? GetLocation(string name) { - return Locations.FirstOrDefault(x => x.Name == name); + return Locations.Find(x => x.Name == name); } } } \ No newline at end of file