sc tiled editing: Hide the cell selection when we select graphic.

Change-Id: I50f68cc292e971af8bb59782e0495d6142007d67
This commit is contained in:
Jan Holesovsky
2015-03-27 22:25:28 +01:00
committed by Miklos Vajna
parent 9987747c47
commit 7fbfd04c2e
2 changed files with 7 additions and 2 deletions

View File

@@ -5913,9 +5913,11 @@ void ScGridWindow::UpdateCursorOverlay()
mpOOCursors->append(*pOverlay);
// notify the LibreOfficeKit too, but only if there's no
// selection yet, to avoid setting the LOK selection twice
// selection yet (either cell selection, or graphic object),
// to avoid setting the LOK selection twice
// (once for the cell only, and then for the selection)
if (!pViewData->GetMarkData().IsMarked() && !pViewData->GetMarkData().IsMultiMarked())
if (!pViewData->GetMarkData().IsMarked() && !pViewData->GetMarkData().IsMultiMarked() &&
!pViewData->GetViewShell()->GetScDrawView()->IsMarking())
{
updateLibreOfficeKitSelection(pViewData, pDoc->GetDrawLayer(), aPixelRects);
}

View File

@@ -737,6 +737,9 @@ void SdrMarkView::SetMarkHandles()
}
sSelection = aSelection.toString();
// hide the text selection too
GetModel()->libreOfficeKitCallback(LOK_CALLBACK_TEXT_SELECTION, "");
}
GetModel()->libreOfficeKitCallback(LOK_CALLBACK_GRAPHIC_SELECTION, sSelection.getStr());
}