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

Fix geometry precision input in vector layer properties and not-dot l… #8358

Merged
merged 2 commits into from
Oct 29, 2018

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Oct 29, 2018

…ocales

Fix #20255 - Impossible to enter a decimal value for the geometry precision in French (comma as decimal separator)

…ocales

Fix qgis#20255 - Impossible to enter a decimal value for the geometry precision in French (comma as decimal separator)
QString precision( QLocale().toString( mLayer->geometryOptions()->geometryPrecision(), ok ) );
if ( ! ok )
precision = 0.0;
mGeometryPrecisionLineEdit->setText( precision );
Copy link
Member

Choose a reason for hiding this comment

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

Could you add setText( precision != 0.0 ? precision : QString() ) or equivalent? I did that once, but it got lost along the way somewhere.

@m-kuhn
Copy link
Member

m-kuhn commented Oct 29, 2018

Thanks @elpaso

Copy link
Member

@m-kuhn m-kuhn left a comment

Choose a reason for hiding this comment

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

Thanks!

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