[Libreoffice-commits] core.git: sfx2/source

Rafael Dominguez venccsralph at gmail.com
Fri Apr 5 19:53:17 PDT 2013


 sfx2/source/control/thumbnailview.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 758e01938c4e24e965f52afcd2e3ae378c4919a3
Author: Rafael Dominguez <venccsralph at gmail.com>
Date:   Fri Apr 5 22:19:36 2013 -0430

    [WaE] Fix signed/unsigned comparison.
    
    Change-Id: I79ee42e8e2480cb57f0d136bf96201e80fdf4f28

diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index f73b364..39b1ce8 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;


More information about the Libreoffice-commits mailing list