Kaydet (Commit) 60c968e9 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Page Breaks: IsLeaveWindow() is unreliable, we do not need it here.

üst aa3bfbe7
......@@ -83,17 +83,11 @@ namespace
void SwBreakDashedLine::MouseMove( const MouseEvent& rMEvt )
{
if ( rMEvt.IsLeaveWindow() )
{
// don't fade if we just move to the 'button'
Point aEventPos( GetPosPixel() + rMEvt.GetPosPixel() );
if ( !m_pWin->Contains( aEventPos ) )
m_pWin->Fade( false );
}
Point aEventPos( GetPosPixel() + rMEvt.GetPosPixel() );
if ( !m_pWin->Contains( aEventPos ) )
m_pWin->Fade( false );
else if ( !m_pWin->IsVisible() )
{
m_pWin->Fade( true );
}
if ( !rMEvt.IsSynthetic() )
{
......@@ -309,13 +303,9 @@ void SwPageBreakWin::Select( )
void SwPageBreakWin::MouseMove( const MouseEvent& rMEvt )
{
if ( rMEvt.IsLeaveWindow() )
{
// don't fade if we just move to the 'line', or the popup menu is open
Point aEventPos( rMEvt.GetPosPixel() + rMEvt.GetPosPixel() );
if ( !Contains( aEventPos ) && !PopupMenu::IsInExecute() )
Fade( false );
}
Point aEventPos( rMEvt.GetPosPixel() + rMEvt.GetPosPixel() );
if ( !Contains( aEventPos ) && !PopupMenu::IsInExecute() )
Fade( false );
else if ( !IsVisible() )
Fade( true );
}
......
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