diff options
author | Ingrid Halama <iha@openoffice.org> | 2011-03-04 11:59:28 +0100 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2011-03-04 11:59:28 +0100 |
commit | e3e1ee8f961c0ae9417d427e3214dfd00bcb8160 (patch) | |
tree | 99ba346e20a90dcc4ee255ba8297e28b0492583f /chart2/source | |
parent | 15e9295ad80329dfa018a79c1d054479d553171b (diff) |
chart55: #i117207# wrong layout with empty titles
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index ad20a557756c..ee915ceac688 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2198,12 +2198,9 @@ std::auto_ptr<VTitle> lcl_createTitle( TitleHelper::eTitleType eType } uno::Reference< XTitle > xTitle( TitleHelper::getTitle( eType, xChartModel ) ); - if(xTitle.is()) + rtl::OUString aCompleteString( TitleHelper::getCompleteString( xTitle ) ); + if( aCompleteString.getLength() != 0 ) { - rtl::OUString aCompleteString( TitleHelper::getCompleteString( xTitle ) ); - if ( aCompleteString.getLength() == 0 ) - return apVTitle;//don't create empty titles as the resulting diagram position is wrong then - //create title apVTitle = std::auto_ptr<VTitle>(new VTitle(xTitle)); rtl::OUString aCID( ObjectIdentifier::createClassifiedIdentifierForObject( xTitle, xChartModel ) ); |