Skip to content

[Synfig Studio] Fixed an issue where sometimes Widget_Vector didn't use locale for decimal separator - #2102

Merged
ice0 merged 1 commit into
synfig:masterfrom
rodolforg:fix-remove-trailing-zeroes
Apr 10, 2021
Merged

ice0 merged 1 commit into
synfig:masterfrom
rodolforg:fix-remove-trailing-zeroes

Conversation

@rodolforg

@rodolforg rodolforg commented Apr 6, 2021 •

Copy link
Copy Markdown
Contributor

Example:
In Canvas Properties dialog, we have the Image Area delimited by two points:
the top left corner and the bottom right corner.
Both points use Widget_Vector to edit it.
There, you could only type real numbers by using 'dot' (.) to separate
integer from the fractional part (e.g. 4.5). However, this character
depends on locale. Brazil and Germany, for example, use 'comma' (,).
Another case: on the same dialog, the Focus Point field.

This commit also fixes synfig::remove_trailing_zeroes() - I accidentally
let two chars to be summed instead of appending them to string

@rodolforg

Copy link
Copy Markdown
Contributor Author

I suggest to backport it.
This PR depends on #1995.

@ice0

ice0 commented Apr 7, 2021

Copy link
Copy Markdown
Collaborator

@rodolforg Could you add to the description how and where it is used?

Example:
 In Canvas Properties dialog, we have the Image Area delimited by two points:
the top left corner and the bottom right corner.
Both points use Widget_Vector to edit it.
There, you could only type real numbers by using 'dot' (.) to separate
integer from the fractional part (e.g. 4.5). However, this character
depends on locale. Brazil and Germany, for example, use 'comma' (,).
 Another case: on the same dialog, the Focus Point field.

This commit also fixes synfig::remove_trailing_zeroes() - I accidentally
let two chars to be summed instead of appending them to string
@rodolforg
rodolforg force-pushed the fix-remove-trailing-zeroes branch from 60fe97d to 3ed8676 Compare April 7, 2021 07:55
@rodolforg rodolforg changed the title sometimes Widget_Vector didn't use locale for decimal points sometimes Widget_Vector didn't use locale for decimal separator Apr 7, 2021
@rodolforg

Copy link
Copy Markdown
Contributor Author

Is it better now?

@ice0

ice0 commented Apr 9, 2021

Copy link
Copy Markdown
Collaborator

Is it better now?

Yes, thank you!

@ice0 ice0 added the Backport label Apr 9, 2021
@ice0 ice0 changed the title sometimes Widget_Vector didn't use locale for decimal separator [Synfig Studio] Sometimes Widget_Vector didn't use locale for decimal separator Apr 10, 2021
@ice0
ice0 merged commit fd1e5ec into synfig:master Apr 10, 2021
@ice0

ice0 commented Apr 10, 2021

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

@ice0 ice0 changed the title [Synfig Studio] Sometimes Widget_Vector didn't use locale for decimal separator [Synfig Studio] Fixed an issue where sometimes Widget_Vector didn't use locale for decimal separator Apr 12, 2021
@rodolforg rodolforg mentioned this pull request Apr 16, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request Apr 17, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request Apr 21, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request Apr 26, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request May 15, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request May 25, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request May 26, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request May 27, 2021
…ig#2102)

Example:
 In Canvas Properties dialog, we have the Image Area delimited by two points:
the top left corner and the bottom right corner.
Both points use Widget_Vector to edit it.
There, you could only type real numbers by using 'dot' (.) to separate
integer from the fractional part (e.g. 4.5). However, this character
depends on locale. Brazil and Germany, for example, use 'comma' (,).
 Another case: on the same dialog, the Focus Point field.

This commit also fixes synfig::remove_trailing_zeroes() - I accidentally
let two chars to be summed instead of appending them to string
morevnaproject pushed a commit that referenced this pull request Jul 12, 2021
Example:
 In Canvas Properties dialog, we have the Image Area delimited by two points:
the top left corner and the bottom right corner.
Both points use Widget_Vector to edit it.
There, you could only type real numbers by using 'dot' (.) to separate
integer from the fractional part (e.g. 4.5). However, this character
depends on locale. Brazil and Germany, for example, use 'comma' (,).
 Another case: on the same dialog, the Focus Point field.

This commit also fixes synfig::remove_trailing_zeroes() - I accidentally
let two chars to be summed instead of appending them to string
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
…ig#2102)

Example:
 In Canvas Properties dialog, we have the Image Area delimited by two points:
the top left corner and the bottom right corner.
Both points use Widget_Vector to edit it.
There, you could only type real numbers by using 'dot' (.) to separate
integer from the fractional part (e.g. 4.5). However, this character
depends on locale. Brazil and Germany, for example, use 'comma' (,).
 Another case: on the same dialog, the Focus Point field.

This commit also fixes synfig::remove_trailing_zeroes() - I accidentally
let two chars to be summed instead of appending them to string
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
…ig#2102)

Example:
 In Canvas Properties dialog, we have the Image Area delimited by two points:
the top left corner and the bottom right corner.
Both points use Widget_Vector to edit it.
There, you could only type real numbers by using 'dot' (.) to separate
integer from the fractional part (e.g. 4.5). However, this character
depends on locale. Brazil and Germany, for example, use 'comma' (,).
 Another case: on the same dialog, the Focus Point field.

This commit also fixes synfig::remove_trailing_zeroes() - I accidentally
let two chars to be summed instead of appending them to string
@rodolforg
rodolforg deleted the fix-remove-trailing-zeroes branch October 26, 2021 00:11
@rodolforg rodolforg removed the Backport label Feb 2, 2024
@rodolforg rodolforg added this to the v1.4.2 milestone Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants