[Libreoffice-commits] .: svx/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Jul 28 04:24:27 PDT 2011


 svx/source/gallery2/galbrws2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fffa0708ea6e58e299012b40ce0901d4399a83b0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jul 28 12:23:45 2011 +0100

    Resolve: fdo#39392 post-stl use vector end position not LIST_APPEND

diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index aeac44d..d1d92a2 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -495,7 +495,7 @@ sal_Int8 GalleryBrowser2::ExecuteDrop( DropTargetHelper&, const ExecuteDropEvent
     {
         Point		aSelPos;
         const sal_uIntPtr nItemId = ImplGetSelectedItemId( &rEvt.maPosPixel, aSelPos );
-        const sal_uIntPtr	nInsertPos = ( nItemId ? ( nItemId - 1 ) : LIST_APPEND );
+        const sal_uIntPtr nInsertPos = (nItemId ? (nItemId - 1) : mpCurTheme->GetObjectCount());
 
         if( mpCurTheme->IsDragging() )
             mpCurTheme->ChangeObjectPos( mpCurTheme->GetDragPos(), nInsertPos );


More information about the Libreoffice-commits mailing list