summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-01-02 10:58:12 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-01-03 14:32:22 +0100
commit5807b07161d84ef105cc1a2292c8c1f09888e39f (patch)
tree2ad9853cb0072b7f966daecd8f9e9b1064a661a5
parentdf68f63f0b24bae202b6526486d26a8402b16341 (diff)
Page Breaks: avoid flickering of the tab by drawing it over the line
-rw-r--r--sw/source/ui/docvw/PageBreakWin.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/sw/source/ui/docvw/PageBreakWin.cxx b/sw/source/ui/docvw/PageBreakWin.cxx
index 7e6232d85371..538f6d796850 100644
--- a/sw/source/ui/docvw/PageBreakWin.cxx
+++ b/sw/source/ui/docvw/PageBreakWin.cxx
@@ -477,15 +477,9 @@ void SwPageBreakWin::UpdatePosition( )
{
long nRight = std::min( nPgRight + aBtnSize.getWidth() - ARROW_WIDTH / 2, aVisArea.Right() );
nBtnLeft = nRight - aBtnSize.getWidth();
- if ( IsVisible() )
- nLineRight = nBtnLeft;
}
else
- {
nBtnLeft = std::max( nPgLeft - aBtnSize.Width() + ARROW_WIDTH / 2, aVisArea.Left() );
- if ( IsVisible() )
- nLineLeft = nBtnLeft + aBtnSize.Width();
- }
// Set the button position
Point aBtnPos( nBtnLeft, nYLineOffset - aBtnSize.Height() / 2 );