[Libreoffice-commits] .: sw/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Tue Jan 3 05:33:38 PST 2012
sw/source/ui/docvw/PageBreakWin.cxx | 6 ------
1 file changed, 6 deletions(-)
New commits:
commit 5807b07161d84ef105cc1a2292c8c1f09888e39f
Author: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
Date: Mon Jan 2 10:58:12 2012 +0100
Page Breaks: avoid flickering of the tab by drawing it over the line
diff --git a/sw/source/ui/docvw/PageBreakWin.cxx b/sw/source/ui/docvw/PageBreakWin.cxx
index 7e6232d..538f6d7 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 );
More information about the Libreoffice-commits
mailing list