View | Details | Raw Unified | Return to issue 119652
Collapse All | Expand All

(-)sw/source/core/edit/eddel.cxx (-2 / +9 lines)
Lines 57-63 Link Here
57
	//	1. Point und Mark stehen in einer Box, Selection normal loeschen
57
	//	1. Point und Mark stehen in einer Box, Selection normal loeschen
58
	//	2. Point und Mark stehen in unterschiedlichen Boxen, alle
58
	//	2. Point und Mark stehen in unterschiedlichen Boxen, alle
59
	// selektierten Boxen suchen in den Inhalt loeschen
59
	// selektierten Boxen suchen in den Inhalt loeschen
60
	if( rPam.GetNode()->FindTableNode() &&
60
61
	//#i119652#: If the point is outside of a table and the mark point is in the a table cell,
62
	//			     should go throw the following code
63
	if( (rPam.GetNode()->FindTableNode() || rPam.GetNode(sal_False)->FindTableNode()) &&
61
		rPam.GetNode()->StartOfSectionNode() !=
64
		rPam.GetNode()->StartOfSectionNode() !=
62
		rPam.GetNode(sal_False)->StartOfSectionNode() )
65
		rPam.GetNode(sal_False)->StartOfSectionNode() )
63
	{
66
	{
Lines 72-78 Link Here
72
		do {
75
		do {
73
			aDelPam.SetMark();
76
			aDelPam.SetMark();
74
			SwNode* pNd = aDelPam.GetNode();
77
			SwNode* pNd = aDelPam.GetNode();
75
			const SwNode& rEndNd = *pNd->EndOfSectionNode();
78
			//#i119652#: If the point is outside of table, select the table start node as the end node of current selection node
79
			const SwNode& rEndNd = !rPam.GetNode()->FindTableNode() && !pNd->FindTableNode()?
80
						*(SwNode*)(rPam.GetNode(sal_False)->FindTableNode())
81
						:
82
						*pNd->EndOfSectionNode();
76
			if( pEndSelPos->nNode.GetIndex() <= rEndNd.GetIndex() )
83
			if( pEndSelPos->nNode.GetIndex() <= rEndNd.GetIndex() )
77
			{
84
			{
78
				*aDelPam.GetPoint() = *pEndSelPos;
85
				*aDelPam.GetPoint() = *pEndSelPos;

Return to issue 119652