[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kspread
From: Laurent Montel <montel () kde ! org>
Date: 2004-04-04 16:47:08
Message-ID: 20040404164708.DFB299A00 () office ! kde ! org
[Download RAW message or body]
CVS commit by mlaurent:
Add missing type of value
M +20 -8 kspread_cell.cc 1.563
--- koffice/kspread/kspread_cell.cc #1.562:1.563
@@ -5152,5 +5151,18 @@ bool KSpreadCell::loadOasis( const QDomE
if( ok ) setValue( value );
}
+ else if ( valuetype == "boolean" )
+ {
+ QString value = element.attribute( "table:value" );
+ if ( value.isEmpty() )
+ value = element.attribute( "table:boolean-value" );
+
+ kdDebug(30518) << "Type: boolean" << endl;
+ if ( value == "true" )
+ setValue( true );
+ else
+ setValue( false );
+ setFormatType( KSpreadFormat::Custom );
+ }
// currency value
else if( valuetype == "currency" )
@@ -5183,5 +5195,5 @@ bool KSpreadCell::loadOasis( const QDomE
// "1980-10-15"
- int year, month, day;
+ int year=0, month=0, day=0;
bool ok = false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic