diff --git a/src/xlsx/xlsxformat.cpp b/src/xlsx/xlsxformat.cpp index 21b0e14..074184f 100755 --- a/src/xlsx/xlsxformat.cpp +++ b/src/xlsx/xlsxformat.cpp @@ -1126,8 +1126,8 @@ bool Format::hasProtectionData() const if (!d) return false; - if (hasProperty(FormatPrivate::P_Protection_Hidden) - || FormatPrivate::P_Protection_Locked) { + if (hasProperty(FormatPrivate::P_Protection_Hidden + || FormatPrivate::P_Protection_Locked)) { return true; } return false;