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

wxGUI/mapwin: fix correct horizontal raster legend position after apply new legend setting #1080

Merged

Conversation

tmszi
Copy link
Member

@tmszi tmszi commented Nov 12, 2020

To Reproduce:

Steps to reproduce the behavior:

  1. Launch wxGUI g.gui
  2. Display raster map e.g. elevation d.rast elevation
  3. Add legend for elevation raster map d.legend -b raster=elevation title=Legend title_fontsize=18 font=DejaVuSans-Bold
  4. Resize legend from vertical orientation to the horizontal orientation
  5. Open legend module dialog properties (double click) and hit OK button
  6. Legend position change back (doesn't retain orientation) from new horizontal orientation to the previous vertical orientation

Default behavior:

d_legend_def

Expected behavior:

d_legend_exp

If raster legend has horizontal orientation, than after apply new legend setting (hit Apply or OK button on the legend module settings dialog) the orientation of legend must not change.

@tmszi tmszi added bug Something isn't working GUI wxGUI related labels Nov 12, 2020
@petrasovaa petrasovaa self-requested a review November 22, 2020 04:15
@petrasovaa petrasovaa added this to the 7.8.5 milestone Dec 3, 2020
@tmszi tmszi merged commit 47579af into OSGeo:master Dec 3, 2020
tmszi added a commit that referenced this pull request Dec 3, 2020
@tmszi tmszi deleted the fix-wxgui-map-display-raster-legend-position branch December 3, 2020 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants