Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add check #724

Closed
wants to merge 1 commit into from
Closed

add check #724

wants to merge 1 commit into from

Conversation

Kvaz1r
Copy link
Contributor

@Kvaz1r Kvaz1r commented Feb 8, 2018

Added checking for avoiding adding incorrect input values.

@vadz
Copy link
Contributor

vadz commented Feb 16, 2018

I'm sorry for yet another change request, but IMO it really would make more sense to have this check at the model level instead of the control. I.e. could you please move these wxCHECK_RETs to wxDataViewListStore::{Append,Insert,Prepend}Item() instead?

TIA!

@vadz vadz added work needed Too useful to close, but can't be applied in current state low priority labels Feb 16, 2018
@Kvaz1r
Copy link
Contributor Author

Kvaz1r commented Feb 16, 2018

Updated or I should use m_cols.GetCount() instead direct calling of GetColumnCount() method?

@vadz vadz removed the work needed Too useful to close, but can't be applied in current state label Feb 17, 2018
@vadz vadz closed this in 3567cd5 Feb 17, 2018
vadz added a commit that referenced this pull request Feb 17, 2018
Explain that the vector passed to {Append,Insert,Prepend}Item() must
have the same number of elements as there are columns in the control and
that no more columns can be added after adding any items.

See #724
@vadz
Copy link
Contributor

vadz commented Feb 17, 2018

No, this looks good to me now, so I've applied it, thanks! I've also improved the documentation to explain things a bit better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants