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.vers...@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
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice