summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2013-04-05 22:19:36 -0430
committerRafael Dominguez <venccsralph@gmail.com>2013-04-05 22:19:36 -0430
commit758e01938c4e24e965f52afcd2e3ae378c4919a3 (patch)
tree06094504e983ce81b71a0ca52c0846145194e3ba /sfx2
parent9993d25441e8b4d19b8dc8e818cd311114e74e49 (diff)
[WaE] Fix signed/unsigned comparison.
Change-Id: I79ee42e8e2480cb57f0d136bf96201e80fdf4f28
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/thumbnailview.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index f73b364cbe41..39b1ce8f0511 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -529,7 +529,9 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt )
{
//If the last elemented selected is the start range position
//search for the first selected item
- if (nLastPos == mpStartSelRange - mFilteredItemList.begin())
+ size_t nSelPos = mpStartSelRange - mFilteredItemList.begin();
+
+ if (nLastPos == nSelPos)
{
while (nLastPos && mFilteredItemList[nLastPos-1]->isSelected())
--nLastPos;