Kaydet (Commit) ef972255 authored tarafından Miklos Vajna's avatar Miklos Vajna

ImpEditView::SetEditSelection: fix missing tiled rendering selection callbacks

Commit 2f31ac76 (editeng tiled
rendering: allow resetting selection with a single click, 2015-03-16)
changed ImpEditView::DrawSelection() so that the selection is only
emitted when the view is in selection mode. However, this way selections
set by ImpEditEngine::Search() were lost, as it only set the selection, but not
the selection mode. So when in tiled rendering, always adjust selection
mode depending on if the selection is empty or not, that makes the
search result selections show up.

Change-Id: I00b0739c5263a98a437e38d01b73c5004e50957b
üst 65846730
......@@ -143,6 +143,10 @@ void ImpEditView::SetEditSelection( const EditSelection& rEditSelection )
// set state before notification
aEditSelection = rEditSelection;
if (isTiledRendering())
// Tiled rendering: selections are only painted when we are in selection mode.
pEditEngine->SetInSelectionMode(aEditSelection.HasRange());
if ( pEditEngine->pImpEditEngine->GetNotifyHdl().IsSet() )
{
const EditDoc& rDoc = pEditEngine->GetEditDoc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment