Bug 87471 - format of whole column does not change
Summary: format of whole column does not change
Status: RESOLVED FIXED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: 1.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-18 23:57 UTC by weert
Modified: 2007-08-05 12:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description weert 2004-08-18 23:57:24 UTC
Version:           1.3 (using KDE KDE 3.2.1)
Installed from:    SuSE RPMs
OS:                Linux

I imported the file isdn.log. After import, long phone numbers , like +493034356192, are not displayed as text but as a scientific notation of this number (4,93034356E+11). I tried to change the column format by selecting the column and then changing by selecting Format->Cell format->Text with no result.
First: text column of the import file should stay text
Second: changes in the cell layout should affect all cells selected.
Comment 1 Raul Fernandes 2004-08-19 21:01:12 UTC
I have the same problem here. It seems that the kspread changes only the first cell. I have tried to change not only the text, but the type and color of the cell.
Comment 2 Inge Wallin 2005-05-18 21:22:50 UTC
First: You are absolutely correct.
Second: Yes, but it does.

The problem is that the first step imports the values as floating point values.  I will see if I can do anything about it.
Comment 3 weert 2005-05-18 22:46:05 UTC
Hi Inge,
TIA. I really appreciate your efforts!
Best
Weert
Am Mittwoch, 18. Mai 2005 21:22 schrieb Inge Wallin:
[bugs.kde.org quoted mail]
Comment 4 Jo Øiongen 2006-04-17 14:32:57 UTC
This bug is still valid, but with some changes.

I created a file (Using vi.) eleven lines in length and called it isdn.log. Each line consisting of the number 493034356192. When importing I chose to import it as a text file using the UTF-8 encoding. In the import dialog I confirmed that "text" was the assumed format. When imported into Kspread the cells had a format of "Generic" and contained the number "-2147483648" while "493034356192" was displayed in the formula field.

I then manually converted the cell format to text. Resulting in "-2147483648" just left shifting. Converting another cell to text and manually writing in "493034356192" resulted in "493034356192" being written.

All this in Kspread 1.5

Cheers Jo
Comment 5 Sebastian Sauer 2006-08-19 18:33:00 UTC
The part of the from "493034356192" to "-2147483648" changed numeric value is a duplicate of bug 127599 while the text-formating problem is another issue.

So, to have a textfile like;
+493034356192,783246786894

and to choose Insert=>External Data=>from Textfile at least the first column (the +493034356192 value) is imported as numeric value rather then as the expected and in the "Inserting Text File" displayed Text-Format. The Cell-format is generic and _not_ as displayed "Text". But if the user choosedin the "Inserting Text File" dialog explicit the first column, changes the format from text to e.g. numeric and back to text and then imports, the column's format is text.
Comment 6 markus 2006-09-09 04:39:02 UTC
I can report the same error, but this time on the cell format "currency". It also works with the date format. That's really a bad bug. 

I have a lot of values in a table: the date in one column, the amount of currency in the next. Whenever I select en entire column in order to adjust the cell type, it has no effect. No matter which cell type I pick. 

Let's vote for this bug to rank it higher. :-)
Comment 7 markus 2007-05-12 19:59:47 UTC
Why is this not being worked on. This bug is a critical issue to make kspread really usable for financial calculations. 
Comment 8 Bram Schoenmakers 2007-05-12 23:28:24 UTC
> Why is this not being worked on.

Got a patch?
Comment 9 Bram Schoenmakers 2007-05-16 23:51:10 UTC
OK, scratch my comment and let's try again.

> Why is this not being worked on.

Because no one seemed to do care enough. Sooner or later, when there are enough developers which have enough time available, the bug will be fixed. But both resources are not there for KSpread (not as much as needed) so that's why. So we need patience, or if patience is not an option, you (or someone who reads this) could submit a patch to resolve the issue.
Comment 10 Johann Lermer 2007-05-17 08:55:21 UTC
On 16.05.2007, Bram Schoenmakers wrote:
[bugs.kde.org quoted mail]

I agree only partially:

- three years is far too long for a bug not to be fixed.
- the bug should easy to be fixed since it's obvious and not a mysterious 
program crash.
- I am not the only one who reported and voted for it.
- it makes CVS import, an important feature, unusable.

And I think that makes it worth mentioning -and- critizising. If you disagree 
with me, fine, but take it this way: if open source developers do not want 
users to give comments to their work - why do they release it?

And another, personal aspect: I test the software, work with it, create sheets 
and then, after a lot of work I stumble over a simple and old bug, that 
forces me to change the software.  I think, I may be a little bit angry.
Comment 11 Stefan Nikolaus 2007-08-05 12:44:11 UTC
SVN commit 696591 by nikolaus:

Painting	Content Format.
		The Style's content format now takes precedence over the one of Value.
		This fixes the issue, that you were not able to change the format after
		importing CSV values as text.

		Errors will always be centered now.

BUGS: 87471, 137375


 M  +1 -1      Cell.cpp  
 M  +57 -20    ValueConverter.cpp  
 M  +8 -8      ValueConverter.h  
 M  +92 -54    ValueFormatter.cpp  
 M  +6 -6      ValueFormatter.h  
 M  +1 -1      dialogs/LayoutDialog.cpp  
 M  +29 -13    ui/CellView.cpp