Skip to content

Unbreak formlayout for image edits. #12142

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

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Sep 17, 2018

As of master, the qt editor is broken when editing an axes that contains
an image throws an error when clicking OK. This is because self.data
needs to be modified in-place in FormWidget.setup, as FormWidget.get
later checks some explicit types in there.

This means, as a side note, that passing a tuple instead of a list to
generate a QComboBox is broken (one can test that by modifying the
example at the bottom of the module -- the results are different
depending on whether 'list2' is a list or a tuple) but that's something
we can deal with some other day...

Partial revert of #11684 (well, I naively assumed that the base code was
correct...).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

As of master, the qt editor is broken when editing an axes that contains
an image throws an error when clicking OK.  This is because `self.data`
needs to be modified *in-place* in FormWidget.setup, as FormWidget.get
later checks some explicit types in there.

This means, as a side note, that passing a tuple instead of a list to
generate a QComboBox is broken (one can test that by modifying the
example at the bottom of the module -- the results are different
depending on whether 'list2' is a list or a tuple) but that's something
we can deal with some other day...
@anntzer anntzer added this to the v3.0 milestone Sep 17, 2018
@anntzer anntzer added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Sep 17, 2018
@tacaswell tacaswell merged commit ef04ad9 into matplotlib:master Sep 17, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 17, 2018
@anntzer anntzer deleted the formlayout branch September 17, 2018 16:21
tacaswell added a commit that referenced this pull request Sep 17, 2018
…142-on-v3.0.x

Backport PR #12142 on branch v3.0.x (Unbreak formlayout for image edits.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants