mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-15 14:52:26 +00:00
GridCraft: use shared XLS validation operator type
This commit is contained in:
1 parent
0752f3181b
commit
3ba4945e72
1 file changed
+7
-7
@@ -286,13 +286,13 @@ fn validation_of(v: &x::DataValidation) -> Option<Validation> {
|
||||
ranges,
|
||||
kind,
|
||||
op: match v.operator {
|
||||
x::ValidationOperator::NotBetween => CfOperator::NotBetween,
|
||||
x::ValidationOperator::Equal => CfOperator::Equal,
|
||||
x::ValidationOperator::NotEqual => CfOperator::NotEqual,
|
||||
x::ValidationOperator::Greater => CfOperator::Greater,
|
||||
x::ValidationOperator::Less => CfOperator::Less,
|
||||
x::ValidationOperator::GreaterOrEqual => CfOperator::GreaterOrEqual,
|
||||
x::ValidationOperator::LessOrEqual => CfOperator::LessOrEqual,
|
||||
x::Operator::NotBetween => CfOperator::NotBetween,
|
||||
x::Operator::Equal => CfOperator::Equal,
|
||||
x::Operator::NotEqual => CfOperator::NotEqual,
|
||||
x::Operator::Greater => CfOperator::Greater,
|
||||
x::Operator::Less => CfOperator::Less,
|
||||
x::Operator::GreaterOrEqual => CfOperator::GreaterOrEqual,
|
||||
x::Operator::LessOrEqual => CfOperator::LessOrEqual,
|
||||
_ => CfOperator::Between,
|
||||
},
|
||||
f1,
|
||||
|
||||
Reference in new issue
Block a user