21 lines
961 B
Diff
21 lines
961 B
Diff
|
--- sw/source/ui/uiview/viewtab.cxx 2010-11-11 16:46:47.000000000 +0100
|
||
|
+++ sw/source/ui/uiview/viewtab.cxx-gil 2011-03-03 15:53:20.000000000 +0100
|
||
|
@@ -722,7 +722,7 @@
|
||
|
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;
|
||
|
@@ -731,7 +731,7 @@
|
||
|
}
|
||
|
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();
|