Apache OpenOffice (AOO) Bugzilla – Issue 2056
Erroneous change in font size value for an expression input.
Last modified: 2017-05-20 10:45:03 UTC
When a mathematical expression is given as an input to font size, then the new font size value is computed erroneously. The operators and any other alphabets in the expression are ignored and the remaining integers of the input are concatenated and the concatenated value is treated as an input. Steps to Reproduce the defect: 1. Drag and drop a text box. 2. Type a text (say, "abcd") and select it . 3. Enter a mathematical expression to the font size combo box (say, 10 * 3). 4. Hit <enter> button. Actual Result: The font size of the selected letters was changed to 103. Expected Result: Error message "Invalid Input" Build date and Platform: 10/1/01 build Windows 2000 5.0.0.2195 Service Pack2. Additional build and Platform: 10/24/01 build Windows Me. Follow up Tests: Enter any text to font size combo box(say, 10a3 ). All alphabets and operators (if any) are ignored and the new font size value is the concatenation of remaining integers. If no integers present, then the previous font size value is restored.
We should avoid the possibility to add other characters except numeric values and comma/point as decimal place.
OK, must check for valid input...
From i1556 MetricFields act strange when they are set to use a comma as decimal separator and when a dot is inserted. The cursor moves over the displayed comma but GetValue() returns the value with the dot ignored (and cut to the maximum if necessary). In other words 1.10 changes to 110. Does it make sense to accept an "." at all, if "," is the decimal separator ? Not sure... What about 1.000,00 ? => Can't do it.
Nothing for OOo 1.1, see also 2295
MT: Problem is the #8166# *** This issue has been marked as a duplicate of 8166 ***
Marked wrong task as double...
accepted...
*** Issue 7837 has been marked as a duplicate of this issue. ***
See also #7837#...
MT->SSA: VCL Fields again...
SSA: reassign to HDU, see also issue 2295
.
This one has a much to special summary for a general problem. Status and Assignee back due to facts I think the best description an most reesearch we have in "Issue 94386 - In input panes for numeric values, alphanumerics will be removed without warning"
Reset the assignee to the default "issues@openoffice.apache.org".