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

            Bug ID: 162899
           Summary: Solver Options dialog should accept parameters of
                    TypeClass BYTE and SHORT (it only accepts LONG)
           Product: LibreOffice
           Version: 24.8.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

This bug is a bit technical, so let's go.

ScSolverUtil::GetDefaults is used to get the default values of solver engines.
However, it only accepts values of types LONG, DOUBLE and BOOLEAN [1].

The problem arises when you're implementing a new solver engine via Python
extension... if you set one of the solver parameters to 100, it will be
understood as a BYTE type and won't be shown in the Solver Options dialog.

Note that this is forced in Runtime::pyObject2Any (see [2]).

I propose ScSolverUtil::GetDefaults should also accept BYTE and SHORT types as
well.

[1] /core/sc/source/ui/miscdlgs/solverutil.cxx

[2] /core/pyuno/source/module/pyuno_runtime.cxx

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

Reply via email to