multi_page::remove_page - account for index when limiting number of pages to remove
This commit is contained in:
parent
a34e4a345a
commit
e6d5100924
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ void multi_page::remove_page(const unsigned page, unsigned count)
|
|||
return;
|
||||
}
|
||||
|
||||
if(!count || count > get_page_count()) {
|
||||
count = get_page_count();
|
||||
if(!count || (page + count) > get_page_count()) {
|
||||
count = get_page_count() - page;
|
||||
}
|
||||
|
||||
for(; count; --count) {
|
||||
|
|
Loading…
Add table
Reference in a new issue