Kaydet (Commit) 54a48cd1 authored tarafından Ulrich Kitzinger's avatar Ulrich Kitzinger Kaydeden (comit) Samuel Mehrbrodt

fdo#58189 : EDITING: Wrong Chapter Moves with the Navigator

During DnD, the target of the dropped node is wrong when dropping after the first node. That's because no key is calculated for position 0 (= the first node). All the other key-finding methods (eg in Collapse and Expand) don't check for 0.

Change-Id: I33b1b4f27a342dc40b37fe1fbaedeb7553a37ece
Reviewed-on: https://gerrit.libreoffice.org/11200Reviewed-by: 's avatarSamuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: 's avatarSamuel Mehrbrodt <s.mehrbrodt@gmail.com>
üst 8b124ceb
......@@ -1078,10 +1078,9 @@ static void* lcl_GetOutlineKey( SwContentTree* pTree, SwOutlineContent* pContent
{
SwWrtShell* pShell = pTree->GetWrtShell();
sal_Int32 nPos = pContent->GetYPos();
if( nPos )
{
key = (void*)pShell->getIDocumentOutlineNodesAccess()->getOutlineNode( nPos );
}
key = (void*)pShell->getIDocumentOutlineNodesAccess()->getOutlineNode( nPos );
}
return key;
}
......
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