cc_frm.cpp: add missing call for hide()

Required if we have saved buffer.
This commit is contained in:
2019-04-11 11:15:02 +02:00
parent 25026c9bae
commit 14a3844c57

View File

@@ -531,6 +531,10 @@ void CComponentsForm::paintCCItems()
if (!this->cc_allow_paint) if (!this->cc_allow_paint)
cc_item->allowPaint(false); cc_item->allowPaint(false);
//restore background
if (v_cc_items[i]->isPainted())
v_cc_items[i]->hide();
//finally paint current item, but only required contents of page //finally paint current item, but only required contents of page
if (cc_item->getPageNumber() == cur_page) if (cc_item->getPageNumber() == cur_page)
cc_item->paint(cc_item->SaveBg()); cc_item->paint(cc_item->SaveBg());