diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-07-19 16:59:24 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-07-20 23:05:40 +0200 |
commit | 46698bfa032690b3c14035db4903e9d6be6550e1 (patch) | |
tree | 2ec44e8baf89cae9ceedef53ffc621de95bfec35 /sc/source/ui/view/gridwin.cxx | |
parent | 9fe24ebe32b18ef8371e1b1d168fa64a48a73b37 (diff) |
that was just a complex way to describe that the whole range is in it
Change-Id: Ib204b6ab39872280c8889615170735ed8c1fc811
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index f5615b5cb185..5b7528c80cd6 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -5360,8 +5360,8 @@ bool ScGridWindow::IsSpellErrorAtPos( const Point& rPos, SCCOL nCol1, SCCOL nCol return false; Rectangle aEditRect2 = pViewData->GetEditArea(eWhich, nCol2, nRow, this, pPattern, false); - long nExt = aEditRect2.Left() - aEditRect.Right() + aEditRect2.GetWidth(); - aEditRect.setWidth(aEditRect.getWidth() + nExt); + long nWidth = aEditRect2.Right() - aEditRect.Left(); + aEditRect.setWidth(nWidth); MapMode aEditMode = pViewData->GetLogicMode(eWhich); Rectangle aLogicEdit = PixelToLogic(aEditRect, aEditMode); |