[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/koffice/1.4/koffice
From: Inge Wallin <inge () lysator ! liu ! se>
Date: 2005-09-30 6:40:40
Message-ID: 1128062440.223858.8679.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 465573 by ingwa:
Fix bug 111478: Variables lose their value when saved and reloaded
- Actually save statistics variables
A misfeature that is still there is that the variables will be shown
with the value 0 after loading, but they are actually OK.
M +1 -0 changes-1.4.2
M +13 -2 lib/kotext/kovariable.cc
--- branches/koffice/1.4/koffice/changes-1.4.2 #465572:465573
@@ -83,6 +83,7 @@
- Remember 'None' numbering option in paragraph styles (Don't store list-style).
- Honor list indent from OpenDocument files (#109223)
* Fixed layouting bug with large inline tables (#112269)
+* Fixed bug 111478: Variables lose their value when saved and reloaded.
kspread
* Fix: Scrolling left/right is very slow (#110551)
--- branches/koffice/1.4/koffice/lib/kotext/kovariable.cc #465572:465573
@@ -2655,12 +2655,23 @@
void KoStatisticVariable::saveVariable( QDomElement& varElem )
{
- //Now we use oasis format => don't use it.
+ QDomElement elem = varElem.ownerDocument().createElement( "STATISTIC" );
+ varElem.appendChild( elem );
+
+ elem.setAttribute( "type", QString::number(m_subtype) );
+ elem.setAttribute( "value", QString::number(m_varValue.toInt()) );
}
void KoStatisticVariable::load( QDomElement &elem )
{
- //Now we use oasis format
+ KoVariable::load( elem );
+
+ QDomElement e = elem.namedItem( "STATISTIC" ).toElement();
+ if ( !e.isNull() ) {
+ // FIXME: Error handling.
+ m_subtype = e.attribute( "type" ).toInt();
+ m_varValue = e.attribute( "value" ).toInt();
+ }
}
void KoStatisticVariable::loadOasis( const QDomElement &elem, KoOasisContext& /*context*/ )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic