Kaydet (Commit) 991ba70c authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide: convert SwCursorShell::GotoTOXMarkBase()

Better not to assume that index 0 of the node is visible.

Change-Id: I50f4a53d853cc59d3d0403eae34af48a56b1776a
üst 61df76df
...@@ -394,8 +394,10 @@ void SwCursorShell::GotoTOXMarkBase() ...@@ -394,8 +394,10 @@ void SwCursorShell::GotoTOXMarkBase()
{ {
SwCallLink aLk( *this ); // watch Cursor-Moves SwCallLink aLk( *this ); // watch Cursor-Moves
SwCursorSaveState aSaveState( *m_pCurrentCursor ); SwCursorSaveState aSaveState( *m_pCurrentCursor );
m_pCurrentCursor->GetPoint()->nNode = *pCNd; assert(pCFrame->IsTextFrame());
m_pCurrentCursor->GetPoint()->nContent.Assign( pCNd, 0 ); *m_pCurrentCursor->GetPoint() =
static_cast<SwTextFrame const*>(pCFrame)
->MapViewToModelPos(TextFrameIndex(0));
bRet = !m_pCurrentCursor->IsInProtectTable() && bRet = !m_pCurrentCursor->IsInProtectTable() &&
!m_pCurrentCursor->IsSelOvr(); !m_pCurrentCursor->IsSelOvr();
if( bRet ) if( bRet )
......
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