diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-28 12:23:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-28 12:23:45 +0100 |
commit | fffa0708ea6e58e299012b40ce0901d4399a83b0 (patch) | |
tree | ae37ef78779b133b06d8ee451c5933750f9b6c32 | |
parent | e334d57bd7c43b5926889aaca58df23cf576f9e6 (diff) |
Resolve: fdo#39392 post-stl use vector end position not LIST_APPEND
-rw-r--r-- | svx/source/gallery2/galbrws2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index aeac44d34d..d1d92a24b9 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 ); |