Issue 81605 - Thesaurus replaces period when cursor is AFTER period at end of sentence
Summary: Thesaurus replaces period when cursor is AFTER period at end of sentence
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 2.2
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-15 16:22 UTC by Daniel Darabos
Modified: 2013-08-07 14:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Daniel Darabos 2007-09-15 16:22:02 UTC
Instead of replacing the word, the thesaurus replaces the period at the end of
the sentence with the synonym if the cursor was after the period.

Reproduce like this (in English):

Type "Timber.". Leave the cursor after the period.

Press Ctrl-F7. Pick "Lumber" as replacement.

You get: "TimberLumber"
Comment 1 Daniel Darabos 2007-09-15 16:29:46 UTC
Sorry for setting the type to PATCH, it was by accident.
Comment 2 andreas.martens 2007-11-05 09:43:34 UTC
Confirmed.
Comment 3 makarenka 2008-02-03 20:39:18 UTC
I was able to successfully reproduce this bug.
My configuration:
OS:         Windows XP Home Edition 2002 SP2
Machine:    AMD Sempron 3000+ (1.58 GHz, 1.18 GB RAM) 
OpenOffice: v2.3.1

Here is the sequence of steps:

1. Open new text document in OpenOffice Writer
2. Type 'Timber.'
3. Leave the cursor after the period.
4. Press Ctrl-F7 OR Go to 'Tools -> Language -> Thesaurus'
5. Thesaurus dialog pops up. In the "Synonym" text box select 'Lumber' as the
replacement and click 'OK'.
6. The 'Timber.' is NOT replaced, but instead words 'TimberLumber' show up while
we expect only 'Lumber' to show up.

The workaround would be to select 'Timber.' with a mouse first and then press
Ctrl-F7. This way 'Timber.' is successfully replaced with 'Lumber'.

I did a follow up test where you type 'Timber ' (i.e. put a space instead of a
period). Using the same sequence of steps as above, we get this 'Timber Lumber'.
So the period at the end of 'Timber' is not really significan, it's just one of
the ways to reproduce the bug.

The replacement works perfectly if we have 'Timber' only.

Comment 4 makarenka 2008-02-04 17:43:00 UTC
Make sure that your 'Thesaurus' language is set to English, otherwise Ctrl-F7
would not work with 'Timber.'

In order to set the language to English:
1. Go to 'Tools->Language->Thesaurus' 
2. Click on 'Language' button
3. Select English in the opened menu and click OK