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>
diff --git a/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx b/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx
index c55c03d..efd8028 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx
@@ -555,10 +555,10 @@
                    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: