[Libreoffice-commits] .: sw/source
Norbert Thiebaud
nthiebaud at kemper.freedesktop.org
Sun Mar 18 13:42:27 PDT 2012
sw/source/filter/ww8/WW8TableInfo.cxx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 0184afc2738ed506f3848723ef1ac0c86822957b
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date: Sun Mar 18 19:59:55 2012 +0100
Check iterator end WW8TableCellGrid
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);
More information about the Libreoffice-commits
mailing list