summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-11-06 18:09:34 +0100
committerAndrzej Hunt <andrzej@ahunt.org>2015-11-08 09:58:12 +0000
commit2f13f051c3c39f77d5f65ff0e3f4a476ccb95f1a (patch)
treebecee9dd9d85c0e0f9d5d4136af3b37d61688e12 /sc
parent8655fa318c1924994eb659b4bb60074c86ad70c1 (diff)
sc lok: Add initial test for .uno:CellCursor
This should be extended with checking that we receive "EMPTY" when there is no cursor shown - that would require e.g. simulating keyboard input to hide the cell cursor. Change-Id: Ia7be5ec3e158f21967b4c307ac10abb2b5e2a56a Reviewed-on: https://gerrit.libreoffice.org/19828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andrzej Hunt <andrzej@ahunt.org> Tested-by: Andrzej Hunt <andrzej@ahunt.org>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 3ab0f7387f69..9d6639b3be99 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -5789,13 +5789,10 @@ OString ScGridWindow::getCellCursor( int nOutputWidth, int nOutputHeight,
}
OString ScGridWindow::getCellCursor(const Fraction& rZoomX, const Fraction& rZoomY) {
- ScDocument* pDoc = pViewData->GetDocument();
- ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer();
-
- // GridWindows stores a shown cell cursor in mpOOCursors, hence
+ // GridWindow stores a shown cell cursor in mpOOCursors, hence
// we can use that to determine whether we would want to be showing
// one (client-side) for tiled rendering too.
- if (!pDrawLayer->isTiledRendering() || !mpOOCursors.get())
+ if (!mpOOCursors.get())
{
return OString("EMPTY");
}