Apache OpenOffice (AOO) Bugzilla – Issue 14904
goToEndOfWord doesn't when word starts with smart quote
Last modified: 2013-02-24 21:08:05 UTC
This is so strange that I am filing it partly to see if anyone can reproduce it. When a word starts with a smartquote character, a call to "gotoendofWord()" from Basic fails: the cursor does not move at all. This only happens when the function is used from OOBasic. It's not a general flaw in the word movement: pressing ctrl-RightArrow on the keyboard works exactly as it should even in words that do not start with a space. On further investigation, this failure in OOBasic seems to be generally true for a word which preceded by any character that is not a space. The first word in a paragraph shows the same behaviour too. Steps to reproduce: I shall upload a document with a macro showing this behaviour.
Created attachment 6435 [details] testcase with macro showing failed word movement
implementation issue
SW: set target.
It lloks like the getWordBoundary function used in sw/source/core/crsr/swcrsr.cxx returns the wrong result. This happens not only for smart (or typographical quotes and apostrophes) it also happens for the regular ones.
Karl: The problem is due to when cursor is on begining of a word and backwords is selected, getWordBoundary is getting previous word, instead of current word. The problem was fixed in issue #3117#, but backed out due to a bug in the fix. Now this problem is traced in issue #11993#, which is targed to OO2.0. This bug is duplicate of #11993#. Since the problem for this bug can be seen on OO1.0, it is not regression bug, I think we should move it to OO2.0 as #11993#. *** This issue has been marked as a duplicate of 11993 ***
SW: changed target
Fixed in CWS i18n08.
Verified in CWS i18n08.
Adjusting owner
adjusting resolution
SBA: Verified in CWS i18n08.
i found this bug again in src680_m49-4 also in scr680_m38 last found good was scr 680_m20 reopend
reassigend to khong
Karl->JW: The problem disappeared in build SRC680m51. It does exist before m50, but I checked i18n project, nothing changed, and pure testing to i18n API shows no difference between m51 and m50. It must some change in Writer fixes the problem. Please check m51. I checked Solaris and Window platform, both work fine now.
ok tested with src680_m51 works fine -> set to fixed
fixed -> closing