https://bugs.kde.org/show_bug.cgi?id=384100

            Bug ID: 384100
           Summary: [Resize Canvas dialog] numeric entries with [fr] local
                    bugs the "math feature"
           Product: krita
           Version: 3.2.1
          Platform: Appimage
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: usability
          Assignee: krita-bugs-n...@kde.org
          Reporter: i...@davidrevoy.com
  Target Milestone: ---

Created attachment 107559
  --> https://bugs.kde.org/attachment.cgi?id=107559&action=edit
5 second Gif screencapture to show the behavior.

Hi,

I'm testing the possibility to enter math expressions in the numeric field of
Krita. But it doesn't work: because the system don't understand the number
written with my local system settings (eg. French 0,5 instead of English 0.5 ).
The results: doing math is really hard and even changing a simple number in
Krita UI is now difficult, because I need to change constantly all "," with "."
.  I attach a quick screen-capture to show you the behavior on a [fr-local]
system.

## What I'm trying to perform in this quick test:
I'm trying to extend 0,5cm around a canvas with the Resize Canvas dialog.
- I open an artwork
- I go to Image → Resize Canvas
- I switch the size expressed in "Pixels" to "Centimeters"
- I enter "+0,5" in the field to perform a math expression
- I press enter key

## Result
1) The dialog auto-close: pressing "enter key" in this dialog validate the
whole "Resize Canvas" dialog. It's a problem. Workaround: I need to click
another field of the dialog to get the result of my math expression...

2) A red /!\ warning appears in the field: I understand something is wrong. But
my math expression is correct. I try with space. Nothing. I try with a equal
symbol at the end? Nothing. I finally understand: I replace all "," by "." and
it works. But weirdly; the result appears as french local with a "," decimal
separator...

## What I would like
Being able to enter math expression and numbers in general with my local
settings (eg. 0,45+0,5 , or simply 0,45 alone) press [enter key] and get the
result in the box.

I hope it will be easy to fix

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to