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 | 8f4478579f669cb208bf5389d3176c7a29fe3fb3 (patch) | |
tree | cee1576960e3eceb225641c5f1a32501d3fad2e3 /svx/source/gallery2 | |
parent | 625ddeb48632ab60a09a9cf7a109e7f00afcacf2 (diff) |
Resolve: fdo#39392 post-stl use vector end position not LIST_APPEND
Diffstat (limited to 'svx/source/gallery2')
-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 6b1a265dd9aa..9c1ba4888161 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 ); |