[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kspread
From: Ariya Hidayat <ariya () kde ! org>
Date: 2004-04-01 0:24:01
Message-ID: 20040401002401.73DD599D6 () office ! kde ! org
[Download RAW message or body]
CVS commit by ariya:
recognize number formatted as percentage
M +13 -1 kspread_cell.cc 1.542
--- koffice/kspread/kspread_cell.cc #1.541:1.542
@@ -5112,4 +5112,16 @@ bool KSpreadCell::loadOasis( const QDomE
}
+ // number formatted as percentage
+ if( element.hasAttribute( "table:value-type" ) )
+ if( element.attribute( "table:value-type" ) == "percentage" )
+ {
+ bool ok = false;
+ double value = element.attribute( "table:value" ).toDouble( &ok );
+ if( ok )
+ {
+ setValue( value );
+ setFormatType( KSpreadFormat::Percentage );
+ }
+ }
// cell comment/annotation
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic