summaryrefslogtreecommitdiff
path: root/starmath/source/tmpdevice.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/tmpdevice.cxx')
-rw-r--r--starmath/source/tmpdevice.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/tmpdevice.cxx b/starmath/source/tmpdevice.cxx
index e47bc1b72ffb..3e822a3f7854 100644
--- a/starmath/source/tmpdevice.cxx
+++ b/starmath/source/tmpdevice.cxx
@@ -45,8 +45,8 @@ SmTmpDevice::SmTmpDevice(OutputDevice &rTheDev, bool bUseMap100th_mm) :
Color SmTmpDevice::Impl_GetColor( const Color& rColor )
{
- ColorData nNewCol = rColor.GetColor();
- if (COL_AUTO == nNewCol)
+ Color nNewCol = rColor.GetColor();
+ if (nNewCol == COL_AUTO)
{
if (OUTDEV_PRINTER == rOutDev.GetOutDevType())
nNewCol = COL_BLACK;