diff --git a/roofit/roofitcore/src/RooHistPdf.cxx b/roofit/roofitcore/src/RooHistPdf.cxx index 678a1e86c8086..7fed2e82bd4ac 100644 --- a/roofit/roofitcore/src/RooHistPdf.cxx +++ b/roofit/roofitcore/src/RooHistPdf.cxx @@ -319,7 +319,7 @@ Int_t RooHistPdf::getAnalyticalIntegral(RooArgSet& allVars, // Disable partial analytical integrals if interpolation is used, and we // integrate over sub-ranges, but leave them enabled when we integrate over // the full range of one or several variables - if (intOrder > 1 && !(code & 1)) { + if (intOrder > 0 && !(code & 1)) { analVars.removeAll(); return 0; }