[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KOFFICE_1_3_BRANCH: koffice/kspread
From:       Ben Burton <bab () debian ! org>
Date:       2005-04-25 13:14:12
Message-ID: 20050425131412.97721488 () office ! kde ! org
[Download RAW message or body]

CVS commit by benb: 

Backport patch that fixes the bug in which currency selection is ignored for cell formatting.


  M +4 -1      kspread_style.cc   1.10.2.1


--- koffice/kspread/kspread_style.cc  #1.10:1.10.2.1
@@ -362,4 +362,5 @@ bool KSpreadStyle::loadXML( QDomElement 
       m_currency.symbol = format.attribute( "symbol" );
     }
+    m_featuresSet |= SFormatType;
   }
   if ( format.hasAttribute( "angle" ) )
@@ -749,5 +750,5 @@ KSpreadFormat::FormatType KSpreadStyle::
 KSpreadFormat::Currency const & KSpreadStyle::currency() const
 {
-  return ( !m_parent ? m_currency : m_parent->currency() );
+  return ( !m_parent || featureSet( SFormatType ) ? m_currency : m_parent->currency() );
 }
 
@@ -1240,8 +1241,10 @@ KSpreadStyle * KSpreadStyle::setCurrency
     KSpreadStyle * style = new KSpreadStyle( this );
     style->m_currency = currency;
+    style->m_featuresSet |= SFormatType;
     return style;
   }
 
   m_currency = currency;
+  m_featuresSet |= SFormatType;
   return this;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic