Changeset 290 for trunk/src/PagePter.cxx

Show
Ignore:
Timestamp:
11/05/07 07:48:29 (13 months ago)
Author:
jordi
Message:

Applied patch by zhou sf that prevents a crash clicking on a link while in text selection mode.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/PagePter.cxx

    r279 r290  
    160160        m_LastSelection = NULL; 
    161161 
    162         if(m_Document->isLoaded() && m_ScrollMode == PagePterModeSelectText){ 
     162        if ( m_Document->isLoaded() && 
     163             m_ScrollMode == PagePterModeSelectText && 
     164             NULL != m_DragInfo ) 
     165        { 
    163166            DocumentRectangle rect(m_DragInfo->startX, m_DragInfo->startY, 
    164167                                   m_DragInfo->x, m_DragInfo->y); 
     
    170173 
    171174        refreshPage(PAGE_SCROLL_NONE, FALSE); 
    172          
     175 
    173176        getView ().setCursor (PAGE_VIEW_CURSOR_NORMAL); 
    174177    }