summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-11-23 23:21:52 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-11-23 23:22:25 +0100
commitb3c2cf2ae1644088a7fc5c325cce71f71d2b37fd (patch)
tree0b350556371edd8f55c85fe2629b853883bb6150 /chart2
parent12be7ad5b6572e1800c3f2b7e78bbe6b5df48acf (diff)
widht -> width
Change-Id: I661eeb167a95540a223ce72aac51789daf3767dc
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_DataSource.cxx6
-rw-r--r--chart2/source/controller/dialogs/tp_RangeChooser.cxx6
-rw-r--r--chart2/source/view/charttypes/VSeriesPlotter.cxx6
-rw-r--r--chart2/source/view/main/VLegend.cxx8
4 files changed, 13 insertions, 13 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx
index c0232aef65a8..7132f4aaaf64 100644
--- a/chart2/source/controller/dialogs/tp_DataSource.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSource.cxx
@@ -141,11 +141,11 @@ void lcl_ShowChooserButton(
if( rChooserButton.IsVisible() != bShow )
{
rChooserButton.Show( bShow );
- sal_Int32 nWidhtDiff = 12 + 4;
+ sal_Int32 nWidthDiff = 12 + 4;
if( bShow )
- nWidhtDiff = -nWidhtDiff;
+ nWidthDiff = -nWidthDiff;
Size aSize = rChooserButton.PixelToLogic( rEditField.GetSizePixel(), MAP_APPFONT );
- aSize.setWidth( aSize.getWidth() + nWidhtDiff );
+ aSize.setWidth( aSize.getWidth() + nWidthDiff );
rEditField.SetSizePixel( rChooserButton.LogicToPixel( aSize, MAP_APPFONT ));
}
}
diff --git a/chart2/source/controller/dialogs/tp_RangeChooser.cxx b/chart2/source/controller/dialogs/tp_RangeChooser.cxx
index 2eb5f5e465a8..3514e915a994 100644
--- a/chart2/source/controller/dialogs/tp_RangeChooser.cxx
+++ b/chart2/source/controller/dialogs/tp_RangeChooser.cxx
@@ -41,11 +41,11 @@ void lcl_ShowChooserButton(
if( rChooserButton.IsVisible() != bShow )
{
rChooserButton.Show( bShow );
- sal_Int32 nWidhtDiff = 10 + 2;
+ sal_Int32 nWidthDiff = 10 + 2;
if( bShow )
- nWidhtDiff = -nWidhtDiff;
+ nWidthDiff = -nWidthDiff;
Size aSize = rChooserButton.PixelToLogic( rEditField.GetSizePixel(), MAP_APPFONT );
- aSize.setWidth( aSize.getWidth() + nWidhtDiff );
+ aSize.setWidth( aSize.getWidth() + nWidthDiff );
rEditField.SetSizePixel( rChooserButton.LogicToPixel( aSize, MAP_APPFONT ));
}
}
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 44e4c5857222..1e6c96dd4b75 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -456,14 +456,14 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
Reference< drawing::XShape > xSymbol;
if(pLabel->ShowLegendSymbol)
{
- sal_Int32 nSymbolHeigth = static_cast< sal_Int32 >( fViewFontSize * 0.6 );
+ sal_Int32 nSymbolHeight = static_cast< sal_Int32 >( fViewFontSize * 0.6 );
awt::Size aCurrentRatio = this->getPreferredLegendKeyAspectRatio();
sal_Int32 nSymbolWidth = aCurrentRatio.Width;
if( aCurrentRatio.Height > 0 )
{
- nSymbolWidth = nSymbolHeigth* aCurrentRatio.Width/aCurrentRatio.Height;
+ nSymbolWidth = nSymbolHeight* aCurrentRatio.Width/aCurrentRatio.Height;
}
- awt::Size aMaxSymbolExtent( nSymbolWidth, nSymbolHeigth );
+ awt::Size aMaxSymbolExtent( nSymbolWidth, nSymbolHeight );
if( rDataSeries.isVaryColorsByPoint() )
xSymbol.set( VSeriesPlotter::createLegendSymbolForPoint( aMaxSymbolExtent, rDataSeries, nPointIndex, xTarget_, m_xShapeFactory ) );
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index cd26ecde2fb0..3cdc50514c95 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -867,8 +867,8 @@ void VLegend::createShapes(
// create entries
double fViewFontSize = lcl_CalcViewFontSize( xLegendProp, rPageSize );//todo
// #i109336# Improve auto positioning in chart
- sal_Int32 nSymbolHeigth = static_cast< sal_Int32 >( fViewFontSize * 0.6 );
- sal_Int32 nSymbolWidth = static_cast< sal_Int32 >( nSymbolHeigth );
+ sal_Int32 nSymbolHeight = static_cast< sal_Int32 >( fViewFontSize * 0.6 );
+ sal_Int32 nSymbolWidth = static_cast< sal_Int32 >( nSymbolHeight );
::std::vector< LegendEntryProvider* >::const_iterator aIter = m_aLegendEntryProviderList.begin();
const ::std::vector< LegendEntryProvider* >::const_iterator aEnd = m_aLegendEntryProviderList.end();
@@ -881,12 +881,12 @@ void VLegend::createShapes(
sal_Int32 nCurrentWidth = aCurrentRatio.Width;
if( aCurrentRatio.Height > 0 )
{
- nCurrentWidth = nSymbolHeigth* aCurrentRatio.Width/aCurrentRatio.Height;
+ nCurrentWidth = nSymbolHeight* aCurrentRatio.Width/aCurrentRatio.Height;
}
nSymbolWidth = std::max( nSymbolWidth, nCurrentWidth );
}
}
- awt::Size aMaxSymbolExtent( nSymbolWidth, nSymbolHeigth );
+ awt::Size aMaxSymbolExtent( nSymbolWidth, nSymbolHeight );
tViewLegendEntryContainer aViewEntries;
for( aIter = m_aLegendEntryProviderList.begin(); aIter != aEnd; ++aIter )