summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-08-05 14:57:18 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-08-05 14:59:19 -0400
commitb398ed8e3f95b75705bb2e53d49589ef7fdbb1c7 (patch)
tree37398b58abb609acab03a0ccef64b0c9c825df75 /chart2
parent3c57701cf0a169bd8d1893d1b2271d48b8072147 (diff)
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
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/ChartView.cxx32
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;
}