diff options
author | Daniel Rentz [dr] <daniel.rentz@oracle.com> | 2011-01-26 18:58:36 +0100 |
---|---|---|
committer | Daniel Rentz [dr] <daniel.rentz@oracle.com> | 2011-01-26 18:58:36 +0100 |
commit | 2e0fdf80c30a1a0af490aab176b4bb7c097f58eb (patch) | |
tree | 3b3f2319bb8a464856394f5e2b428bf9d0590671 /oox/source | |
parent | 4dd0bf051842c0231f9f5747039c6ade04101856 (diff) |
chart52: #i28670# import/export of manual chart legend size from/to XLS
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/drawingml/chart/titleconverter.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/oox/source/drawingml/chart/titleconverter.cxx b/oox/source/drawingml/chart/titleconverter.cxx index 29054744b9f1..8163241e5a31 100644 --- a/oox/source/drawingml/chart/titleconverter.cxx +++ b/oox/source/drawingml/chart/titleconverter.cxx @@ -212,7 +212,7 @@ void LegendConverter::convertFromModel( const Reference< XDiagram >& rxDiagram ) // predefined legend position and expansion cssc2::LegendPosition eLegendPos = cssc2::LegendPosition_CUSTOM; - cssc::ChartLegendExpansion eLegendExpand = cssc::ChartLegendExpansion_HIGH; + cssc::ChartLegendExpansion eLegendExpand = cssc::ChartLegendExpansion_CUSTOM; switch( mrModel.mnPosition ) { case XML_l: @@ -220,6 +220,7 @@ void LegendConverter::convertFromModel( const Reference< XDiagram >& rxDiagram ) eLegendExpand = cssc::ChartLegendExpansion_HIGH; break; case XML_r: + case XML_tr: // top-right not supported eLegendPos = cssc2::LegendPosition_LINE_END; eLegendExpand = cssc::ChartLegendExpansion_HIGH; break; @@ -231,10 +232,6 @@ void LegendConverter::convertFromModel( const Reference< XDiagram >& rxDiagram ) eLegendPos = cssc2::LegendPosition_PAGE_END; eLegendExpand = cssc::ChartLegendExpansion_WIDE; break; - case XML_tr: - eLegendPos = cssc2::LegendPosition_LINE_END; // top-right not supported - eLegendExpand = cssc::ChartLegendExpansion_HIGH; - break; } // manual positioning and size |