summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-08-10 16:14:17 +0400
committerPetr Mladek <pmladek@suse.cz>2012-08-13 17:19:00 +0200
commitcbb047527d856258b7b925dc37f56f0e9b0b3e90 (patch)
tree8dcf358359983344c8ef55d8ff35101734ed40b3 /sw
parent93e819418070deb2750a918a1c3ea52376558d21 (diff)
Page Break: don't show if mouse is gone and button is still invisible (fdo#46518)
it seems when the mouse leaves the dashed line, it immediately appears inside a button (if the mouse motion is not super-fast). Change-Id: I43c792fdba59feafd761bde8529a8683c07bf3d3 Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/docvw/PageBreakWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/docvw/PageBreakWin.cxx b/sw/source/ui/docvw/PageBreakWin.cxx
index c96f2809d493..02a3dcbcab82 100644
--- a/sw/source/ui/docvw/PageBreakWin.cxx
+++ b/sw/source/ui/docvw/PageBreakWin.cxx
@@ -87,7 +87,7 @@ namespace
{
// don't fade if we just move to the 'button'
Point aEventPos( GetPosPixel() + rMEvt.GetPosPixel() );
- if ( !m_pWin->Contains( aEventPos ) )
+ if ( !m_pWin->Contains( aEventPos ) || !m_pWin->IsVisible() )
m_pWin->Fade( false );
}
else if ( !m_pWin->IsVisible() )