Bug 476215 - Find and replace doesn't work in calc
Summary: Find and replace doesn't work in calc
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: openoffice.org
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-12 15:17 UTC by Linuxguy123
Modified: 2009-01-16 12:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-16 12:20:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
State before 'Search and Replace' (11.89 KB, application/octet-stream)
2008-12-17 14:48 UTC, David Tardon
no flags Details
State after 'Search and Replace' (11.57 KB, application/octet-stream)
2008-12-17 14:49 UTC, David Tardon
no flags Details
calc file with numbers using the comma format (11.11 KB, application/vnd.oasis.opendocument.spreadsheet)
2008-12-18 20:55 UTC, Linuxguy123
no flags Details

Description Linuxguy123 2008-12-12 15:17:17 UTC
Description of problem:

Multi cell find and replace doesn't work in open-office calc.

Version-Release number of selected component (if applicable):

$ yum list openoffice.org-calc*
Loaded plugins: downloadonly, kmdl, priorities, refresh-packagekit
0 packages excluded due to repository priority protections
Installed Packages
openoffice.org-calc.i386                                                        1:3.0.0-9.10.fc10                                                    installed
openoffice.org-calc-core.i386                                                   1:3.0.0-9.10.fc10                                                    installed

How reproducible:
I have not been able to make it work once.

Steps to Reproduce:

1. Import data with a format that uses commas instead of periods.  It imports correctly. 

2. Select a bunch of cells.  Select Find and Replace

3. Set Search for "," and Replace with ".".  Press Find or Replace or Replace all.  
  
Actual results:

Nothing happens.  Nothing gets replaced.  

If you close the Find and Replace dialog window and open it again, it keeps the ",", but loses the "."


Expected results:
It should replace all the ","s with "."s.  I have to do it by hand now. 


Additional info:

I got the data by copying and pasting the motor data table from here:

http://www.icare-rc.com/plettenberg_predator.htm

Comment 1 Caolan McNamara 2008-12-14 15:39:13 UTC
I suggest that you attach a sample .ods of the state before search & replace for me to have a look at it.

i.e. in my locale the decimal mark is "." so strings like 88,5 will import as "text" and so I can easily search and replace them with the dialog.

But if your locale is one that uses "," instead of "." then I would definitely expect that the search and replaces wouldn't do anything as the "," isn't really there to be replaced, instead if is just the way that decimals are displayed in that locale.

So I can't be sure if the problem here is one of "I can't search and replace , to be . in a text cell" or if its is "I want to change what is displayed for decimal separators". If it was the second, then e.g. format cell language and change it to an English locale would change the , to .

Comment 2 David Tardon 2008-12-17 14:47:39 UTC
It works for me, too. I tried it in Czech locale (cs_CZ.utf8) that uses comma as decimal mark. I selected the table on the HTML page and inserted it into an empty sheet; the numbers were correctly imported as numbers. Then I selected body of the table and performed the replace; all numbers containing a comma were converted to text and the commas were replaced by dots.

Comment 3 David Tardon 2008-12-17 14:48:47 UTC
Created attachment 327253 [details]
State before 'Search and Replace'

Comment 4 David Tardon 2008-12-17 14:49:20 UTC
Created attachment 327254 [details]
State after 'Search and Replace'

Comment 5 Linuxguy123 2008-12-18 20:55:19 UTC
Created attachment 327364 [details]
calc file with numbers using the comma format

Try searching the voltage, current and efficiency columns and replacing the "," with "."s.

Comment 6 David Tardon 2008-12-19 09:10:43 UTC
It does work for me, in both English and Czech locale. Have you got any 'unusual' language settings? Have you got any field checked under 'More options' it the Search and Replace dialog?

Comment 7 Linuxguy123 2008-12-19 13:57:43 UTC
It just worked for me.   I have no idea why it didn't work before. 

I am working in English.  I don't have any unusual language settings.   I didn't have anything selected under "More options".

I think there is a bug here, but I can't replicate it now.  I'll play around with it later and see if I can get it to do it again.

Comment 8 Caolan McNamara 2009-01-16 12:20:06 UTC
Lets close it for now then


Note You need to log in before you can comment on or make changes to this bug.