Hi,
This patch check iterator end before updating bBeginningOfCell and aRect.
Best regards
--
Arnaud Versini
From 3abb087caeb5e8a794720bd2fd1d7e9b97e8dc6c Mon Sep 17 00:00:00 2001
From: Arnaud Versini <arnaud.versini@gmail.com>
Date: Sun, 18 Mar 2012 19:59:55 +0100
Subject: [PATCH] Check iterator end WW8TableCellGrid
---
sw/source/filter/ww8/WW8TableInfo.cxx | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/sw/source/filter/ww8/WW8TableInfo.cxx b/sw/source/filter/ww8/WW8TableInfo.cxx
index 6171430..72993ba 100644
--- a/sw/source/filter/ww8/WW8TableInfo.cxx
+++ b/sw/source/filter/ww8/WW8TableInfo.cxx
@@ -1171,9 +1171,11 @@ void WW8TableCellGrid::addShadowCells()
}
++aCellIt;
-
- bBeginningOfCell = (aRect.Left() != aCellIt->left());
- aRect = aCellIt->getRect();
+ if (aCellIt != aCellEndIt)
+ {
+ bBeginningOfCell = (aRect.Left() != aCellIt->left());
+ aRect = aCellIt->getRect();
+ }
}
WW8TableCellGridRow::Pointer_t pRow = getRow(*aTopsIt);
--
1.7.5.4
Context
- [PATCH] Check iterator end in WW8TableCellGrid::addShadowCells · Arnaud Versini
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.