[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.1' - chart2/source

2013-10-17 Thread Muthu Subramanian
 chart2/source/view/main/VLegend.cxx |   12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

New commits:
commit 7f7853f5165423b990eae3229dc8edad206433e3
Author: Muthu Subramanian 
Date:   Thu Jul 25 11:19:53 2013 +0530

n#827332: Charts shrink when there are no legends.

diff --git a/chart2/source/view/main/VLegend.cxx 
b/chart2/source/view/main/VLegend.cxx
index 2bc9a65..6296c01 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -944,12 +944,14 @@ void VLegend::createShapes(
 
 bool bSymbolsLeftSide = lcl_shouldSymbolsBePlacedOnTheLeftSide( 
xLegendProp, m_nDefaultWritingMode );
 
-// place entries
-aLegendSize = lcl_placeLegendEntries( aViewEntries, eExpansion, 
bSymbolsLeftSide, fViewFontSize, aMaxSymbolExtent
-, aTextProperties, xLegendContainer, m_xShapeFactory, 
aLegendSize );
+if( aViewEntries.size() ) {
+// place entries
+aLegendSize = lcl_placeLegendEntries( aViewEntries, 
eExpansion, bSymbolsLeftSide, fViewFontSize, aMaxSymbolExtent,
+  aTextProperties, 
xLegendContainer, m_xShapeFactory, aLegendSize );
 
-if( xBorder.is() )
-xBorder->setSize( aLegendSize );
+if( xBorder.is() )
+xBorder->setSize( aLegendSize );
+}
 }
 }
 catch( const uno::Exception & ex )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-4.1' - chart2/source

2013-10-24 Thread Felix Zhang
 chart2/source/view/main/ChartView.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 99d9f949ee052cb83195edd414a2aa9b8c5a9b0e
Author: Felix Zhang 
Date:   Tue Sep 4 14:40:43 2012 +0800

bnc#759197: adjust chart layout distance

Change-Id: Ifae4faeb234630dcce79851a0ad8bb0c6960f9f7

diff --git a/chart2/source/view/main/ChartView.cxx 
b/chart2/source/view/main/ChartView.cxx
index e5ae969..670c6f9 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -2011,7 +2011,7 @@ awt::Rectangle 
ExplicitValueProvider::substractAxisTitleSizes(
 
 double lcl_getPageLayoutDistancePercentage()
 {
-return 0.02;
+return 0.006;
 }
 
 bool getAvailablePosAndSizeForDiagram(
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits