From 0bdcb35e12b368da2be6e2628b4798fe52b0d279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 23 Mar 2021 22:31:07 +0000 Subject: [PATCH] Bug 1700472 - Add braces to SetPaginatedScrolling. r=dholbert Drive-by fixup while I was reading related code. Depends on D109545 Differential Revision: https://phabricator.services.mozilla.com/D109546 --- layout/base/nsPresContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index 1972ca3abe9d..6e9703a197e2 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -1665,8 +1665,9 @@ nsCompatibility nsPresContext::CompatibilityMode() const { } void nsPresContext::SetPaginatedScrolling(bool aPaginated) { - if (mType == eContext_PrintPreview || mType == eContext_PageLayout) + if (mType == eContext_PrintPreview || mType == eContext_PageLayout) { mCanPaginatedScroll = aPaginated; + } } void nsPresContext::SetPrintSettings(nsIPrintSettings* aPrintSettings) {