summaryrefslogtreecommitdiff
path: root/cppcanvas/source/mtfrenderer/mtftools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppcanvas/source/mtfrenderer/mtftools.cxx')
-rw-r--r--cppcanvas/source/mtfrenderer/mtftools.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx
index b02f35547fc7..dce2973bebca 100644
--- a/cppcanvas/source/mtfrenderer/mtftools.cxx
+++ b/cppcanvas/source/mtfrenderer/mtftools.cxx
@@ -51,7 +51,7 @@ namespace cppcanvas::tools
::Size getBaselineOffset( const ::cppcanvas::internal::OutDevState& outdevState,
const VirtualDevice& rVDev )
{
- const ::FontMetric& aMetric = rVDev.GetFontMetric();
+ const ::FontMetric aMetric = rVDev.GetFontMetric();
// calc offset for text output, the XCanvas always renders
// baseline offset.
@@ -99,12 +99,12 @@ namespace cppcanvas::tools
calcLogic2PixelLinearTransform(o_rMatrix, rVDev);
// translate according to curr map mode/pref map mode offset
- const ::Point aEmptyPoint;
- const ::Point& rTranslatedPoint(
+ const ::Point aEmptyPoint;
+ const ::Point aTranslatedPoint(
rVDev.LogicToPixel( aEmptyPoint ));
- o_rMatrix.translate(rTranslatedPoint.X(),
- rTranslatedPoint.Y());
+ o_rMatrix.translate(aTranslatedPoint.X(),
+ aTranslatedPoint.Y());
return o_rMatrix;
}