Author: orw
Date: Thu Jun  5 10:49:57 2014
New Revision: 1600590

URL: http://svn.apache.org/r1600590
Log:
125050: correct text range for comment/annotation at a table cell selection


Modified:
    openoffice/trunk/main/sw/source/ui/wrtsh/wrtsh2.cxx

Modified: openoffice/trunk/main/sw/source/ui/wrtsh/wrtsh2.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/ui/wrtsh/wrtsh2.cxx?rev=1600590&r1=1600589&r2=1600590&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/ui/wrtsh/wrtsh2.cxx (original)
+++ openoffice/trunk/main/sw/source/ui/wrtsh/wrtsh2.cxx Thu Jun  5 10:49:57 2014
@@ -100,7 +100,10 @@ void SwWrtShell::Insert( SwField& rFld )
                 GetTblCrs()->Normalize( sal_False );
                 const SwPosition rStartPos( 
*(GetTblCrs()->GetMark()->nNode.GetNode().GetCntntNode()), 0 );
                 KillPams();
-                EndPara();
+                if ( !IsEndOfPara() )
+                {
+                    EndPara();
+                }
                 const SwPosition rEndPos( *GetCurrentShellCursor().GetPoint() 
);
                 pAnnotationTextRange = new SwPaM( rStartPos, rEndPos );
             }


Reply via email to