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

New commits:
commit 54a48cd11d62082eb57b07bb245e49af255c6731
Author: Ulrich Kitzinger <ulk...@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.mehrbr...@gmail.com>
    Tested-by: Samuel Mehrbrodt <s.mehrbr...@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;
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to