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

Server fix getLegendGraphic default WIDTH/HEIGHT when BBOX #31865

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Sep 18, 2019

is set.

Fixes #31846

@pblottiere
Copy link
Member

It looks good to me, thanks @elpaso 👍

@rldhont rldhont added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels Sep 18, 2019
{
if ( parameters.width().isEmpty() )
{
parameters.set( QgsWmsParameter::WIDTH, 800 );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that to be perfectly explicit, we could use SRCWIDTH in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I thought about it, I will change and test this.

@elpaso elpaso merged commit 6146456 into qgis:master Sep 18, 2019
@elpaso elpaso deleted the bugfix-gh31846-server-contextual-legend-no-width-no-height branch September 19, 2019 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server GetLegendGraphics contextual (BBOX) fails if no WIDTH and HEIGHT are supplied
3 participants