summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2011-06-03 22:31:15 -0430
committerMarkus Mohrhard <moggi@linux-clh3.site>2011-06-15 16:31:37 +0200
commit13285e975f54123fa92881fcc7a77fb1bc213d8c (patch)
tree657e0f5583a30e7f02c075495cde25ebb07fad87 /sc/source
parenta9f77159566618bdf9ce5384e3dbf76f68864c63 (diff)
Remove rebundant check since we already know its in boundaries.
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/gridwin4.cxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index bc4e22a1b6f4..b912cd57e82e 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -804,16 +804,14 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMod
for (sal_uInt16 i=0; i<nCount; i++)
{
ScRangeFindData* pData = pRangeFinder->GetObject(i);
- if (pData)
- {
- ScRange aRef = pData->aRef;
- aRef.Justify();
- if ( aRef.aStart.Tab() >= nTab && aRef.aEnd.Tab() <= nTab )
- aOutputData.DrawRefMark( aRef.aStart.Col(), aRef.aStart.Row(),
- aRef.aEnd.Col(), aRef.aEnd.Row(),
- Color( ScRangeFindList::GetColorName( i ) ),
- sal_True );
- }
+
+ ScRange aRef = pData->aRef;
+ aRef.Justify();
+ if ( aRef.aStart.Tab() >= nTab && aRef.aEnd.Tab() <= nTab )
+ aOutputData.DrawRefMark( aRef.aStart.Col(), aRef.aStart.Row(),
+ aRef.aEnd.Col(), aRef.aEnd.Row(),
+ Color( ScRangeFindList::GetColorName( i ) ),
+ sal_True );
}
}
}