-void
-wxLayoutList::UpdateCursorScreenPos(wxDC &dc)
-{
- wxCHECK_RET( m_CursorLine, "no cursor line" );
-
- // we need to save the current style, in case the layout() of the line
- // changes it
- wxLayoutStyleInfo SiBackup = m_CurrentStyleInfo;
- m_CursorLine->Layout(dc, this,
- &m_CursorScreenPos, &m_CursorSize,
- m_CursorPos.x,
- true /* suppress update */);
- ApplyStyle(SiBackup, dc); // restore it
-}
-