[Libreoffice-commits] core.git: sw/source

Ulrich Kitzinger ulkitz at hotmail.de
Sun Sep 21 14:44:36 PDT 2014


 sw/source/uibase/utlui/content.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 54a48cd11d62082eb57b07bb245e49af255c6731
Author: Ulrich Kitzinger <ulkitz at hotmail.de>
Date:   Fri Aug 29 22:52:13 2014 +0200

    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/11200
    Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt at gmail.com>
    Tested-by: Samuel Mehrbrodt <s.mehrbrodt at gmail.com>

diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 2019065..d67ddda 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -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;
 }


More information about the Libreoffice-commits mailing list