From a3438ee890b360dda9201f03a78e1c5b98193c36 Mon Sep 17 00:00:00 2001
From: Kohei Yoshida <kohei.yoshida@collabora.com>
Date: Tue, 5 Aug 2014 14:57:18 -0400
Subject: [PATCH 081/137] bnc#886540: Let's not push the available area down
when no titles are there.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This improves visual layout compability with MS Office chart & looks better.
Change-Id: I348ea81152eca4e3bba9e0d9460448d9314738ad
(cherry picked from commit b398ed8e3f95b75705bb2e53d49589ef7fdbb1c7)
Reviewed-on: https://gerrit.libreoffice.org/10771
Reviewed-by: Matúš Kukan <matus.kukan@collabora.com>
Tested-by: Matúš Kukan <matus.kukan@collabora.com>
---
chart2/source/view/main/ChartView.cxx | 32 +-------------------------------
1 file changed, 1 insertion(+), 31 deletions(-)
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index c6b5878..1965f05 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -2217,37 +2217,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;
}
--
1.9.3