diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-03-26 18:57:26 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-03-26 18:57:26 -0400 |
commit | 429f6195f6a4410ae45ef3f560b0745ac60184c1 (patch) | |
tree | c62bb4274a338132234b18aaf9d37eacc26acb76 | |
parent | 6b7c77f3a28d9a44afacb76e3db58a5ff5f59f4d (diff) | |
download | verbly-429f6195f6a4410ae45ef3f560b0745ac60184c1.tar.gz verbly-429f6195f6a4410ae45ef3f560b0745ac60184c1.tar.bz2 verbly-429f6195f6a4410ae45ef3f560b0745ac60184c1.zip |
Fixed bug with filters
-rw-r--r-- | lib/data.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/data.h b/lib/data.h index 6c2d580..0d599c4 100644 --- a/lib/data.h +++ b/lib/data.h | |||
@@ -203,7 +203,8 @@ namespace verbly { | |||
203 | } else if (it->_group.elems.size() == 1) | 203 | } else if (it->_group.elems.size() == 1) |
204 | { | 204 | { |
205 | bool truelogic = it->_notlogic != it->_group.elems.front()._notlogic; | 205 | bool truelogic = it->_notlogic != it->_group.elems.front()._notlogic; |
206 | *it = it->_group.elems.front(); | 206 | filter<T> e = it->_group.elems.front(); |
207 | *it = e; | ||
207 | it->_notlogic = truelogic; | 208 | it->_notlogic = truelogic; |
208 | } | 209 | } |
209 | } | 210 | } |
@@ -217,7 +218,8 @@ namespace verbly { | |||
217 | if (_group.elems.size() == 1) | 218 | if (_group.elems.size() == 1) |
218 | { | 219 | { |
219 | bool truelogic = _notlogic != _group.elems.front()._notlogic; | 220 | bool truelogic = _notlogic != _group.elems.front()._notlogic; |
220 | *this = _group.elems.front(); | 221 | filter<T> e = _group.elems.front(); |
222 | *this = e; | ||
221 | _notlogic = truelogic; | 223 | _notlogic = truelogic; |
222 | } | 224 | } |
223 | } | 225 | } |