summaryrefslogtreecommitdiffstats
path: root/starmath/source/tmpdevice.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/tmpdevice.cxx')
-rw-r--r--starmath/source/tmpdevice.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/starmath/source/tmpdevice.cxx b/starmath/source/tmpdevice.cxx
index 5eee10d9670f..1e30fbc7cd11 100644
--- a/starmath/source/tmpdevice.cxx
+++ b/starmath/source/tmpdevice.cxx
@@ -18,6 +18,8 @@
*/
#include <smmod.hxx>
+#include <utility.hxx>
+
#include "tmpdevice.hxx"
#include <svtools/colorcfg.hxx>
@@ -36,10 +38,10 @@ SmTmpDevice::SmTmpDevice(OutputDevice &rTheDev, bool bUseMap100th_mm) :
{
rOutDev.Push(vcl::PushFlags::FONT | vcl::PushFlags::MAPMODE |
vcl::PushFlags::LINECOLOR | vcl::PushFlags::FILLCOLOR | vcl::PushFlags::TEXTCOLOR);
- if (bUseMap100th_mm && MapUnit::Map100thMM != rOutDev.GetMapMode().GetMapUnit())
+ if (bUseMap100th_mm && SmMapUnit() != rOutDev.GetMapMode().GetMapUnit())
{
SAL_WARN("starmath", "incorrect MapMode?");
- rOutDev.SetMapMode(MapMode(MapUnit::Map100thMM)); // format for 100% always
+ rOutDev.SetMapMode(MapMode(SmMapUnit())); // format for 100% always
}
}