diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-28 00:47:50 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-28 08:35:57 +0200 |
commit | 8e475035a77b47001ad09ca0c333d3eabe82bf27 (patch) | |
tree | ba01b522d499a518a991ac0dd1a7c8bbf9304342 /chart2 | |
parent | 38e7f933c86b66010f65d821155eccd9e8a4135e (diff) |
tdf#120703 PVS: Blind attempt to implement original idea
The strange implementation was there ever since commit
bd36338009672fdabd5b6d585f8c1092b617196a.
The other possibility is to just remove the block above the last
assignment to aRet
Change-Id: I5bd3bf1f518ab894e5df4cbc7d86a76d325e4600
Reviewed-on: https://gerrit.libreoffice.org/71447
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx b/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx index c55c03d7b976..efd80288411c 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx +++ b/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx @@ -555,10 +555,10 @@ Any WrappedScaleProperty::getPropertyValue( tScaleProperty eScaleProperty, const aTimeIncrement.TimeResolution <<= aExplicitScale.TimeResolution; aRet <<= aTimeIncrement; } + else + aRet <<= aScaleData.TimeIncrement; } - if( aScaleData.AxisType == AxisType::DATE || aScaleData.AutoDateAxis ) - aRet <<= aScaleData.TimeIncrement; break; } case SCALE_PROP_LOGARITHMIC: |