Returns the label for the given index
| 201 | // Returns the label for the given index |
| 202 | // |
| 203 | wxString |
| 204 | KeyView::GetLabel(int index) const |
| 205 | { |
| 206 | // Make sure index is valid |
| 207 | if (index < 0 || index >= (int) mNodes.size()) |
| 208 | { |
| 209 | wxASSERT(false); |
| 210 | return wxEmptyString; |
| 211 | } |
| 212 | |
| 213 | return mNodes[index].label; |
| 214 | } |
| 215 | |
| 216 | // |
| 217 | // Returns the prefix (if available) prepended to the label for the given index |
no test coverage detected