… | … | ||
---|---|---|---|
171 | 171 | ||
172 | // bit-toggle to find next child for front-to-back order | 172 | // bit-toggle to find next child for front-to-back order |
173 | static unsigned char toggle[8+1] | 173 | static unsigned char toggle[8+1] |
174 | = { 0, 0^1, 1^2, 2^4, 4^3, 3^5, 5^6, 6^7, 0 }; | 174 | = { 0, 0^1, 1^2, 2^4, 4^3, 3^5, 5^6, 6^7, 0 }; |
175 | 175 | ||
176 | bool visible = vs.state == PARTIAL || vs.state == FULL; | 176 | bool visible = size () && (vs.state == PARTIAL || vs.state == FULL); |
177 | 177 | ||
178 | unsigned char *next = toggle; | 178 | unsigned char *next = toggle; |
179 | do | 179 | do |
180 | { | 180 | { |
181 | si ^= *next; | 181 | si ^= *next; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |