Kaydet (Commit) 4e4d38fa authored tarafından Eike Rathke's avatar Eike Rathke

correct b0rken logic that accidentally worked nevertheless

... because sFormula1 in such cases usually (?) is not empty.

Change-Id: Idc0b71e258018b4728e3d7e7f8942e0c09b22e5c
üst d8a17866
...@@ -220,9 +220,9 @@ OUString ScMyValidationsContainer::GetCondition(ScXMLExport& rExport, const ScMy ...@@ -220,9 +220,9 @@ OUString ScMyValidationsContainer::GetCondition(ScXMLExport& rExport, const ScMy
} }
if (aValidation.aValidationType != sheet::ValidationType_LIST && if (aValidation.aValidationType != sheet::ValidationType_LIST &&
(!aValidation.sFormula1.isEmpty() || (!aValidation.sFormula1.isEmpty() ||
(aValidation.aOperator == sheet::ConditionOperator_BETWEEN && ((aValidation.aOperator == sheet::ConditionOperator_BETWEEN ||
aValidation.aOperator == sheet::ConditionOperator_NOT_BETWEEN && aValidation.aOperator == sheet::ConditionOperator_NOT_BETWEEN) &&
!aValidation.sFormula2.isEmpty()))) !aValidation.sFormula2.isEmpty())))
{ {
if (aValidation.aValidationType != sheet::ValidationType_TEXT_LEN) if (aValidation.aValidationType != sheet::ValidationType_TEXT_LEN)
sCondition += " and "; sCondition += " and ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment