Hi,
My team and I have narrowed down the modification required to make this
happened. We modified MetricField in vcl/source/control/field.cxx to take
in fractional data format (i.e. 1 1/2"), parse and convert to decimal
format and then output it. Since MetricField is used for most dimension
setting textfields in Draw, our change would render all such texfields to
be capable of specifying fractional inches.
However, this is a mere hijack of the parsing of user input, the output
remains in decimal format. There are several considerations involved in
this decision and the most important being that, this change will adhere to
the standardization of the textfields' display without affecting other
functionalities.
Our own preliminary unit tests have shown our change is stable. We
conducted further verifications with tests installed on the system without
a hitch.
How should we move forward with the changes? Do we go ahead and push our
changes to gerrit?
Cheers,
Foo Lai
Context
- Fix on Bug 38829 - Add fractional inches to units · Foo Lai Choo
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.