[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: 2005-10-04 10:58:25
Message-ID: 1128423505.978186.31383.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 467129 by mlaurent:
Fix save/load formula oo<->kspread
M +5 -1 kspread_cell.cc
--- trunk/koffice/kspread/kspread_cell.cc #467128:467129
@@ -5504,7 +5504,11 @@
kdDebug()<<" formula :"<<element.attributeNS( KoXmlNS::table, "formula", QString::null )<<endl;
isFormula = true;
QString formula;
- convertFormula( formula, element.attributeNS( KoXmlNS::table, "formula", QString::null ) );
+ QString oasisFormula( element.attributeNS( KoXmlNS::table, "formula", QString::null ) );
+ //necessary to remove it to load formula from oocalc2.0 (use namespace)
+ if (oasisFormula.startsWith( "oooc:" ) )
+ oasisFormula= oasisFormula.remove( "oooc:" );
+ convertFormula( formula, oasisFormula);
setCellText( formula );
}
if ( element.hasAttributeNS( KoXmlNS::table, "validation-name" ) )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic