diff --git a/src/gui/components/cc_frm.cpp b/src/gui/components/cc_frm.cpp index 9237050b1..cf40cc7d1 100644 --- a/src/gui/components/cc_frm.cpp +++ b/src/gui/components/cc_frm.cpp @@ -549,14 +549,14 @@ void CComponentsForm::setPageCount(const u_int8_t& pageCount) u_int8_t CComponentsForm::getPageCount() { - u_int8_t num = 0; + u_int8_t num = 1; for(size_t i=0; igetPageNumber(); num = max(item_num, num); } //convert type, possible -Wconversion warnings! - page_count = static_cast(num + 1); + page_count = static_cast(num); return page_count; }