summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/inc/implrenderer.hxx6
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx
index e61f3407169a..295da4ee73d7 100644
--- a/cppcanvas/source/inc/implrenderer.hxx
+++ b/cppcanvas/source/inc/implrenderer.hxx
@@ -195,9 +195,9 @@ namespace cppcanvas
/* EMF+ */
static void ReadRectangle (SvStream& s, float& x, float& y, float &width, float& height, bool bCompressed = false);
static void ReadPoint (SvStream& s, float& x, float& y, sal_uInt32 flags);
- void MapToDevice (double &x, double &y);
- ::basegfx::B2DPoint Map (double ix, double iy);
- ::basegfx::B2DSize MapSize (double iwidth, double iheight);
+ void MapToDevice (double &x, double &y) const;
+ ::basegfx::B2DPoint Map (double ix, double iy) const;
+ ::basegfx::B2DSize MapSize (double iwidth, double iheight) const;
void GraphicStatePush (GraphicStateMap& map, sal_Int32 index, OutDevState const & rState);
void GraphicStatePop (GraphicStateMap& map, sal_Int32 index, OutDevState& rState);
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 60f9f51b3e15..369ac9ccb3b9 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -251,14 +251,14 @@ namespace cppcanvas
s.ReadFloat( x ).ReadFloat( y );
}
- void ImplRenderer::MapToDevice (double& x, double& y)
+ void ImplRenderer::MapToDevice (double& x, double& y) const
{
// TODO: other units
x = 100*nMmX*x/nPixX;
y = 100*nMmY*y/nPixY;
}
- ::basegfx::B2DPoint ImplRenderer::Map (double ix, double iy)
+ ::basegfx::B2DPoint ImplRenderer::Map (double ix, double iy) const
{
double x, y;
@@ -276,7 +276,7 @@ namespace cppcanvas
return ::basegfx::B2DPoint (x, y);
}
- ::basegfx::B2DSize ImplRenderer::MapSize (double iwidth, double iheight)
+ ::basegfx::B2DSize ImplRenderer::MapSize (double iwidth, double iheight) const
{
double w, h;