diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-07-19 22:20:33 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-07-20 23:05:41 +0200 |
commit | 14277af57b397b03b753a61c22cc5211e43a5f82 (patch) | |
tree | 46d45db7edffbe2c612a23d22cd01ad45d810308 /sc/source/ui/view/gridwin.cxx | |
parent | 46698bfa032690b3c14035db4903e9d6be6550e1 (diff) |
it makes no sense to use the second column as well, fdo#81499
Change-Id: If5990d41f444a2d051c9b9029d61ffd8b8cf377e
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 5b7528c80cd6..bd2bb44c60ea 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -3010,7 +3010,7 @@ void ScGridWindow::Command( const CommandEvent& rCEvt ) if (bSpellError) { // Check and see if a misspelled word is under the mouse pointer. - bSpellError = IsSpellErrorAtPos(aPosPixel, nColSpellError, nCellX, nCellY); + bSpellError = IsSpellErrorAtPos(aPosPixel, nColSpellError, nCellY); } } @@ -5334,7 +5334,7 @@ bool ScGridWindow::GetEditUrl( const Point& rPos, return false; } -bool ScGridWindow::IsSpellErrorAtPos( const Point& rPos, SCCOL nCol1, SCCOL nCol2, SCROW nRow ) +bool ScGridWindow::IsSpellErrorAtPos( const Point& rPos, SCCOL nCol1, SCROW nRow ) { if (!mpSpellCheckCxt) return false; @@ -5359,10 +5359,6 @@ bool ScGridWindow::IsSpellErrorAtPos( const Point& rPos, SCCOL nCol1, SCCOL nCol if (rPos.Y() < aEditRect.Top()) return false; - Rectangle aEditRect2 = pViewData->GetEditArea(eWhich, nCol2, nRow, this, pPattern, false); - long nWidth = aEditRect2.Right() - aEditRect.Left(); - aEditRect.setWidth(nWidth); - MapMode aEditMode = pViewData->GetLogicMode(eWhich); Rectangle aLogicEdit = PixelToLogic(aEditRect, aEditMode); Point aLogicClick = PixelToLogic(rPos, aEditMode); |