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

List:       kde-bugs-dist
Subject:    [Bug 69284] Specified currency is ignored when formatting currency
From:       Tomas Mecir <mecirt () gmail ! com>
Date:       2004-10-01 9:26:13
Message-ID: 20041001092613.21988.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
        
http://bugs.kde.org/show_bug.cgi?id=69284        
mecirt gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From mecirt gmail com  2004-10-01 11:26 -------
CVS commit by mecir: 

Fix bug #69284 (Specified currency is ignored when formatting currency cells).
Patch by Tim Beaulen, tbscope <> gmail () com

CCMAIL: 69284-done bugs kde org


  M +4 -1      kspread_style.cc   1.31


--- koffice/kspread/kspread_style.cc  #1.30:1.31
 @ -1189,4 +1189,5  @ bool KSpreadStyle::loadXML( QDomElement 
       m_currency.symbol = format.attribute( "symbol" );
     }
+    m_featuresSet |= SFormatType;
   }
   if ( format.hasAttribute( "angle" ) )
 @ -1576,5 +1577,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() );
 }
 
 @ -2067,8 +2068,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