Skip to content

Commit 2337acc

Browse files
committed
More cleanup.
1 parent f69320e commit 2337acc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Source/FreeImage/MultiPage.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,7 @@ FreeImage_MovePage(FIMULTIBITMAP *bitmap, int target, int source) {
798798
BlockListIterator block_source = FreeImage_FindBlock(bitmap, target);
799799
BlockListIterator block_target = FreeImage_FindBlock(bitmap, source);
800800

801-
header->m_blocks.insert(block_target, *block_source);
802-
header->m_blocks.erase(block_source);
801+
header->m_blocks.splice(block_target, header->m_blocks, block_source);
803802

804803
header->changed = true;
805804

0 commit comments

Comments
 (0)