diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-06 20:27:33 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-06 20:27:33 +0200 |
commit | 91cc314576f03bdca1a2d14e2306401759bc206e (patch) | |
tree | 8381ab11309caf912317c0ade34855eb2d862d22 /chart2/source/view/main | |
parent | 5ca2b6fca9eb975886f6796e6086ddf79be387d5 (diff) |
Revert "Revert "bnc#886540: Let's not push the available area down when no titles are there.""
This reverts commit b7a46a22b6a0a5429adec015255ce76e41dced41.
Diffstat (limited to 'chart2/source/view/main')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 9086abc46295..902705b9ccfe 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2301,37 +2301,7 @@ boost::shared_ptr<VTitle> lcl_createTitle( TitleHelper::eTitleType eType break; } } - else - { - // #i109336# Improve auto positioning in chart - switch ( eAlignment ) - { - case ALIGN_TOP: - { - rRemainingSpace.Y += nYDistance; - rRemainingSpace.Height -= nYDistance; - } - break; - case ALIGN_BOTTOM: - { - rRemainingSpace.Height -= nYDistance; - } - break; - case ALIGN_LEFT: - { - rRemainingSpace.X += nXDistance; - rRemainingSpace.Width -= nXDistance; - } - break; - case ALIGN_RIGHT: - { - rRemainingSpace.Width -= nXDistance; - } - break; - default: - break; - } - } + return apVTitle; } |