diff options
Diffstat (limited to 'chart2/source/view/axes/DateScaling.cxx')
-rw-r--r-- | chart2/source/view/axes/DateScaling.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx index 0a83e792b818..742adc3cb044 100644 --- a/chart2/source/view/axes/DateScaling.cxx +++ b/chart2/source/view/axes/DateScaling.cxx @@ -80,7 +80,7 @@ double SAL_CALL DateScaling::doScaling( double value ) fResult += fDayOfMonth/fDaysInMonth; if(m_bShifted) { - if( YEAR==m_nTimeUnit ) + if( m_nTimeUnit==YEAR ) fResult += 0.5*lcl_fNumberOfMonths; else fResult += 0.5; @@ -147,7 +147,7 @@ double SAL_CALL InverseDateScaling::doScaling( double value ) //Date aDate(m_aNullDate); if(m_bShifted) { - if( YEAR==m_nTimeUnit ) + if( m_nTimeUnit==YEAR ) value -= 0.5*lcl_fNumberOfMonths; else value -= 0.5; |