diff options
author | Vladimir Glazunov <vg@openoffice.org> | 2009-12-10 18:31:30 +0100 |
---|---|---|
committer | Vladimir Glazunov <vg@openoffice.org> | 2009-12-10 18:31:30 +0100 |
commit | d882dd49fafcde4c110a598b5b23516da1d1abcb (patch) | |
tree | f89f7296673422c93a83f7b5c6e8107bde712608 /vcl/source/gdi/region.cxx | |
parent | feab692f6477e4312f3da0d7259d0d0ed7eeaecb (diff) | |
parent | b48c0ede8f74ff21415a216a08001e3a129c23f3 (diff) |
CWS-TOOLING: integrate CWS vcl107
Diffstat (limited to 'vcl/source/gdi/region.cxx')
-rw-r--r-- | vcl/source/gdi/region.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx index 5314837143de..66865759db4b 100644 --- a/vcl/source/gdi/region.cxx +++ b/vcl/source/gdi/region.cxx @@ -2459,6 +2459,14 @@ SvStream& operator>>( SvStream& rIStrm, Region& rRegion ) } } + if( rIStrm.IsEof() ) + { + DBG_ERROR( "premature end of region stream" ); + delete rRegion.mpImplRegion; + rRegion.mpImplRegion = (ImplRegion*)&aImplEmptyRegion; + return rIStrm; + } + // get next header rIStrm >> nTmp16; } |