Kaydet (Commit) 06d1d69f authored tarafından Michael Stahl's avatar Michael Stahl

SwFEShell::ShouldObjectBeSelected leaks pPos

üst 3e425dfa
......@@ -1163,13 +1163,13 @@ sal_Bool SwFEShell::ShouldObjectBeSelected(const Point& rPt)
dynamic_cast<const SwTxtFrm*>(pCntntFrm);
if ( pTxtFrm )
{
SwPosition* pPos =
new SwPosition( *(pTxtFrm->GetTxtNode()) );
SwPosition aPos( *(pTxtFrm->GetTxtNode()) );
Point aTmpPt( rPt );
if ( pTxtFrm->GetKeyCrsrOfst( pPos, aTmpPt ) )
if (pTxtFrm->GetKeyCrsrOfst(&aPos, aTmpPt))
{
SwRect aCursorCharRect;
if ( pTxtFrm->GetCharRect( aCursorCharRect, *pPos ) )
if (pTxtFrm->GetCharRect(aCursorCharRect,
aPos))
{
if ( aCursorCharRect.IsOver( SwRect( pObj->GetLastBoundRect() ) ) )
{
......
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