diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-01 13:31:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-01 20:39:36 +0000 |
commit | 3fba2e0ac8e07f9d87c2fa8797853950002483d6 (patch) | |
tree | b054d669fd35b98c151d8abd0e383611a045463b /sw | |
parent | db232c041c53265662488531af41b8b70b31f70c (diff) |
Resolves: rhbz#681159 bandaid for crash
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/uiview/viewtab.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/uiview/viewtab.cxx b/sw/source/ui/uiview/viewtab.cxx index d28f11b1a1ba..66320221e050 100644 --- a/sw/source/ui/uiview/viewtab.cxx +++ b/sw/source/ui/uiview/viewtab.cxx @@ -694,7 +694,7 @@ void SwView::ExecTabWin( SfxRequest& rReq ) if(bIsTableRTL) { USHORT nColCount = aColItem.Count() - 1; - for ( USHORT i = 0; i < nColCount; ++i ) + for ( USHORT i = 0; i < nColCount && i < aTabCols.Count(); ++i ) { const SvxColumnDescription& rCol = aColItem[nColCount - i]; aTabCols[i] = aTabCols.GetRight() - rCol.nStart; @@ -703,7 +703,7 @@ void SwView::ExecTabWin( SfxRequest& rReq ) } else { - for ( USHORT i = 0; i < aColItem.Count()-1; ++i ) + for ( USHORT i = 0; i < aColItem.Count()-1 && i < aTabCols.Count(); ++i ) { const SvxColumnDescription& rCol = aColItem[i]; aTabCols[i] = rCol.nEnd + aTabCols.GetLeft(); |