summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/main/ChartWindow.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/main/ChartWindow.cxx b/chart2/source/controller/main/ChartWindow.cxx
index 1b5ffa817373..c0f9d242610c 100644
--- a/chart2/source/controller/main/ChartWindow.cxx
+++ b/chart2/source/controller/main/ChartWindow.cxx
@@ -343,8 +343,8 @@ void ChartWindow::LogicInvalidate(const tools::Rectangle* pRectangle)
if (pEditWin)
{
MapMode aCWMapMode = GetMapMode();
- double fXScale = aCWMapMode.GetScaleX();
- double fYScale = aCWMapMode.GetScaleY();
+ double fXScale( aCWMapMode.GetScaleX() );
+ double fYScale( aCWMapMode.GetScaleY() );
if (!IsMapModeEnabled())
{
@@ -410,8 +410,8 @@ tools::Rectangle ChartWindow::GetBoundingBox()
// In all cases, the following code fragment
// returns the chart bounding box in twips.
MapMode aCWMapMode = GetMapMode();
- double fXScale = aCWMapMode.GetScaleX();
- double fYScale = aCWMapMode.GetScaleY();
+ double fXScale( aCWMapMode.GetScaleX() );
+ double fYScale( aCWMapMode.GetScaleY() );
Point aOffset = GetOffsetPixelFrom(*pRootWin);
aOffset.X() *= (TWIPS_PER_PIXEL / fXScale);
aOffset.Y() *= (TWIPS_PER_PIXEL / fYScale);