Check DialogFilterId againts its min().
GitOrigin-RevId: 396dfde586a96e7db5a635d0c8687237afb28184
This commit is contained in:
parent
1eb7663769
commit
05e72d2011
@ -33,8 +33,8 @@ class DialogFilterId {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool is_valid() const {
|
bool is_valid() const {
|
||||||
// don't check min() and max() for greater future flexibility
|
// don't check max() for greater future flexibility
|
||||||
return id > 0;
|
return id >= min().get();
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 get() const {
|
int32 get() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user