[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/koffice/1.6/koffice/kspread
From: Aron Stansvik <elvstone () gmail ! com>
Date: 2006-12-01 0:49:41
Message-ID: 1164934181.403728.15235.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 609490 by astan:
Date and time cells did not respect their formats when loaded.
Me and dipesh had a little debugging session on IRC and this
seems to fix it, but could Stefan or anyone please confirm?
M +4 -2 kspread_cell.cc
--- branches/koffice/1.6/koffice/kspread/kspread_cell.cc #609489:609490
@@ -5838,7 +5838,8 @@
if ( ok )
{
setCellValue( QDate( year, month, day ) );
- format()->setFormatType (ShortDate_format);
+ if ( style )
+ format()->setFormatType (style->formatType());
kdDebug() << "Set QDate: " << year << " - " << month << " - " << day << endl;
}
@@ -5883,7 +5884,8 @@
// Value kval( timeToNum( hours, minutes, seconds ) );
// cell->setValue( kval );
setCellValue( QTime( hours % 24, minutes, seconds ) );
- format()->setFormatType (Time_format);
+ if ( style )
+ format()->setFormatType (style->formatType());
}
}
else if( valuetype == "string" )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic