summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-13 14:04:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-13 16:09:12 +0100
commit0679d6375c7ef747dea78b9c49dee78f488c058a (patch)
tree8a8214b7b4f6f04061fcec17efa49c793fa94b3f
parenta93d940186f65005141eea3bebdfb4c66cebe8f8 (diff)
ofz#6888/forcepoint#27 adjust consistency check
Change-Id: I0d1f04170bcbc08fe30236e2444761d9d71fb1fb Reviewed-on: https://gerrit.libreoffice.org/51221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/gdi/regionband.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx
index 77eb2f4a7782..0cd74fa869a2 100644
--- a/vcl/source/gdi/regionband.cxx
+++ b/vcl/source/gdi/regionband.cxx
@@ -1163,6 +1163,8 @@ bool RegionBand::Exclude(const RegionBand& rSource)
bool RegionBand::CheckConsistency() const
{
+ if (!mpFirstBand)
+ return true;
// look in the band list (don't test first band again!)
const ImplRegionBand* pBand = mpFirstBand->mpNextBand;
while (pBand)