diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-06 12:33:39 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-06 12:38:36 +0200 |
commit | 23d947c947d90f4383f9744d5b65cd30afd8dd74 (patch) | |
tree | a3e677b95c925d83a36a1898192fa11128e8dc7f | |
parent | 2cc9e1614e410e5f70db420122bdbf0601252f89 (diff) |
ThumbnailView::SelectItem: -Werror=unused-but-set-variable
Change-Id: I90c626dd1285f725b3008399a71c1ef56887a970
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index 111165b942a9..3897f38c136a 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -957,7 +957,6 @@ void ThumbnailView::SelectItem( sal_uInt16 nItemId ) mnSelItemId = nItemId; bool bNewOut = IsReallyVisible() && IsUpdateMode(); - bool bNewLine = false; // if necessary scroll to the visible area if ( mbScroll && nItemId ) @@ -966,12 +965,10 @@ void ThumbnailView::SelectItem( sal_uInt16 nItemId ) if ( nNewLine < mnFirstLine ) { mnFirstLine = nNewLine; - bNewLine = true; } else if ( nNewLine > (sal_uInt16)(mnFirstLine+mnVisLines-1) ) { mnFirstLine = (sal_uInt16)(nNewLine-mnVisLines+1); - bNewLine = true; } } |