Apache OpenOffice (AOO) Bugzilla – Issue 95051
Asian strings truncated in scale tabpage
Last modified: 2013-02-24 21:18:58 UTC
1. Chosse Format > Axis > X Axis | Y Axis | X Axis | Secondary X Axis | Secondary Y Axis 2. Click Scale tab in the dialog Japanese messages for "Automatic" are truncated. ex. 自動( <== mnemonic "A)" is missing
Created attachment 57197 [details] Japanese X Axis and Y axis dialogs
SBA: Confirmed. SBA->IHA: As seen, same in Chinese UI. Western strings have enough room in this dialog. Please proceed.
@weiz, please have a look at this one. The size of the check box is set to the calculated minimum size: aCbxAutoMin.SetSizePixel( aCbxAutoMin.CalcMinimumSize() ); (in tp_Scale.cxx). So the string size calculation seems to be wrong for Asian languages. Maybe hdu can give a hint? There is a similar issue 89430, where the calculated size is wrong also. Maybe they are duplicate.
Created attachment 57372 [details] Chinese Y axis dialog
@iha: I cannot confirm this issue in Chinese version.( Dev300m19 ) For testing, I increased the text, but the result is OK. ( as you can see at the attached image ). And I found that there is no mnemonic (~A) at the Japanese and Chinese localization "Automatic"( chart2\source\controller\dialogs\localize.sdf ). @yuko: I wonder why the mnemonic is shown at your dialog? Did you do something special? Thank you very much.
I verified that menmonic keys were not included in Japanese translations in the file, but I did not do anything special.
The mnemonics are created automatically when they are not given in the original string. It seems that the length for the control is calculated at a time where this automatic mnemonic is still missing. So the solution of this problem must change the order of things happening. First the automatic mnemonic must be added and then the size for the control can be calculated correctly. See also HDUs comment in issue 89430. Maybe methods PageCreated or ActivatePage are better places to calculate the text size than the constructor of the tab page.
Created attachment 57605 [details] patch_081031
@iha: The patch is submitted, please let me know your suggestions. Thank you!
@weiz, your fix works fine. Thanks! I commited it to CWS chart35. A bit adaption was necessary as the controls on the scale tabpage changed with DEV300m38.
@Kla, please verify in CWS chart35. Thanks!
@Kla, please verify in CWS chart35. Thanks! Use the zh-TW install set.
Thx SBA for take over this issue.
Verified in CWS chart35.
*** Issue 99455 has been marked as a duplicate of this issue. ***
OK in OOO310_m9. Closed.