[Libreoffice-commits] .: Branch 'libreoffice-3-4' - svx/source
Michael Meeks
michael at kemper.freedesktop.org
Fri Jul 29 04:03:06 PDT 2011
svx/source/gallery2/galbrws2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f98524a326fb65a0a4d11317d630c461406087a9
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
Signed-off-by: Michael Meeks <michael.meeks at novell.com>
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index ef95bbd..001bb70 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -496,7 +496,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