chart2/source/view/main/ChartView.cxx | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-)
New commits: commit b398ed8e3f95b75705bb2e53d49589ef7fdbb1c7 Author: Kohei Yoshida <kohei.yosh...@collabora.com> Date: Tue Aug 5 14:57:18 2014 -0400 bnc#886540: Let's not push the available area down when no titles are there. This improves visual layout compability with MS Office chart & looks better. Change-Id: I348ea81152eca4e3bba9e0d9460448d9314738ad diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 9086abc..902705b 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits