summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-11 00:10:51 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-11 19:14:38 +0300
commit3d2624a30117e31d264def62b74d71e1a2189b0c (patch)
tree2c2a322f4a542bda73937c255ba58725e688757e /vcl
parentd795dfdffb1a8c3c50d7b4b96f55a284fc929430 (diff)
Log a null CGRect as "NULL"
Change-Id: I94ef782a3d4cd86afe4c1e96426df771401a65d3
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/utils.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/quartz/utils.cxx b/vcl/quartz/utils.cxx
index e0c49e84e43b..b2356fdc6adf 100644
--- a/vcl/quartz/utils.cxx
+++ b/vcl/quartz/utils.cxx
@@ -72,7 +72,10 @@ std::ostream &operator <<(std::ostream& s, CGRect &rRect)
#ifndef SAL_LOG_INFO
(void) rRect;
#else
- s << rRect.size << "@" << rRect.origin;
+ if (CGRectIsNull(rRect))
+ s << "NULL";
+ else
+ s << rRect.size << "@" << rRect.origin;
#endif
return s;
}