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