Kaydet (Commit) 4ea7a6f4 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

expand complex cascading conditional operator

Change-Id: I315f3a929a465c9fd0ec91999e947afcd08f1522
üst 0469d54c
......@@ -208,10 +208,16 @@ sal_Int32 SwVbaTableHelper::GetColWidth( SwTabCols& rCols, sal_Int32 nNum ) thro
{
if(rCols.Count() == static_cast<size_t>(GetColCount( rCols )))
{
nWidth = ((static_cast<size_t>(nNum) == rCols.Count()) ?
rCols.GetRight() - rCols[nNum-1] :
nNum == 0 ? rCols[nNum] - rCols.GetLeft() :
rCols[nNum] - rCols[nNum-1]);
if(static_cast<size_t>(nNum) == rCols.Count())
nWidth = rCols.GetRight() - rCols[nNum-1];
else
{
nWidth = rCols[nNum];
if(nNum == 0)
nWidth -= rCols.GetLeft();
else
nWidth -= rCols[nNum-1];
}
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment