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

--- Comment #17 from Rafael Lima <[email protected]> ---
(In reply to Justin L from comment #16)
> That pretty much makes this bug impossible to solve without doing massive
> edge-casing. It certainly doesn't seem to be a logical flaw...

I did some testing as well and I can confirm everything you said.

One idea I had is the following: Currently, when bWasStandard is true, we test
the output string to figure out the value of nPrecision. However, the output
string can be much larger than what would fit on the screen.

Instead we should define nPrecision by the amount of text that would fit in the
cell. This probably could be done by dividing the cell width by the width of a
single character. Then we could figure out how many decimal numbers are
probably being displayed on the screen to determine nPrecision.

Since this would only be needed for the current cell (not the entire range),
than it shouldn't be too costly.

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

Reply via email to