https://bugs.documentfoundation.org/show_bug.cgi?id=164446

            Bug ID: 164446
           Summary: With locales using decimal comma, it's impossible to
                    edit doubles in Basic IDE's Watch window
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Using a locale that uses a decimal separator other than decimal dot (e.g.,
comma):

1. Create this Basic macro:

sub foo
  dim x as double
end sub

2. In Basic IDE, put a breakpoint to the "end sub" line.
3. Run the macro.
4. When the execution is paused on the breakpoint, make sure that the Watched
Expressions are shown (check menu View), and put "c" into the "Watch" box, then
press Enter to add the "x" variable to the Watched list.
5. See that the Value is shown to be 0.
6. Double-click the value (the double-click must be over the value text) to
edit it.
7. Type a floating-point value. Try both using a standard Basic decimal dot,
and the locale-specific decimal separator. E.g., try to input "1.2" or "1,2".

=> it's impossible to make the value of the variable equal to the entered
floating-point value. It may become 1, or 12, but it will not accept the
decimal separator properly.

I suspect that it broke after the change in bug 97983. The code in
SbxValue::PutStringExt, and in ImpConvStringExt called from there, is intended
to handle internationalized input, making it standardized to decimal dot, but
with the change when the standard conversion uses only internationalized
strings, it unconditionally changes the decimal separator to the dot not
accepted in the conversion.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to