| 188 | } |
| 189 | |
| 190 | bool ContractionState::SetExpanded(int lineDoc, bool expanded_) { |
| 191 | if (OneToOne() && expanded_) { |
| 192 | return false; |
| 193 | } else { |
| 194 | EnsureData(); |
| 195 | if (expanded_ != (expanded->ValueAt(lineDoc) == 1)) { |
| 196 | expanded->SetValueAt(lineDoc, expanded_ ? 1 : 0); |
| 197 | Check(); |
| 198 | return true; |
| 199 | } else { |
| 200 | Check(); |
| 201 | return false; |
| 202 | } |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | int ContractionState::ContractedNext(int lineDocStart) const { |
| 207 | if (OneToOne()) { |
no test coverage detected