From 2225140337af1117b00f2e9a71c8901bf517b6ab Mon Sep 17 00:00:00 2001 From: Steven Cohn Date: Thu, 25 Jan 2024 13:35:56 -0500 Subject: [PATCH] Fix Apply Style command --- OneMore/Commands/Styles/ApplyStyleCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OneMore/Commands/Styles/ApplyStyleCommand.cs b/OneMore/Commands/Styles/ApplyStyleCommand.cs index 7dfcfc65a1..10160256b7 100644 --- a/OneMore/Commands/Styles/ApplyStyleCommand.cs +++ b/OneMore/Commands/Styles/ApplyStyleCommand.cs @@ -209,7 +209,7 @@ private bool StylizeParagraphs() .Where(e => e.Attributes("selected").Any(a => a.Value.Equals("all"))) .Select(p => p.Parent); - if (elements.Any()) + if (!elements.Any()) { return false; }