diff options
-rw-r--r-- | include/tools/gen.hxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/wmf/winwmf.cxx | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index 6007f126a8d3..c1cffcbe6ccc 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -356,6 +356,8 @@ inline std::basic_ostream<charT, traits> & operator <<( // Rectangle #define RECT_EMPTY ((short)-32767) +#define RECT_MAX LONG_MAX +#define RECT_MIN LONG_MIN class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Rectangle { diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx index fff2f9db0285..ef39c9c84ef6 100644 --- a/vcl/source/filter/wmf/winwmf.cxx +++ b/vcl/source/filter/wmf/winwmf.cxx @@ -1291,10 +1291,10 @@ bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm ) { bool bRet = true; - rPlaceableBound.Left() = (sal_Int32)0x7fffffff; - rPlaceableBound.Top() = (sal_Int32)0x7fffffff; - rPlaceableBound.Right() = (sal_Int32)0x80000000; - rPlaceableBound.Bottom() = (sal_Int32)0x80000000; + rPlaceableBound.Left() = RECT_MAX; + rPlaceableBound.Top() = RECT_MAX; + rPlaceableBound.Right() = RECT_MIN; + rPlaceableBound.Bottom() = RECT_MIN; sal_uInt32 nPos = pStm->Tell(); sal_uInt32 nEnd = pStm->Seek( STREAM_SEEK_TO_END ); |