fix bugs that button renderer generated bad values if it zero-size

This commit is contained in:
Jinhao
2017-07-01 07:32:45 +08:00
parent fa80519526
commit afd8225875
4 changed files with 29 additions and 19 deletions

View File

@@ -294,7 +294,7 @@ namespace nana
void drawer::refresh()
{
if (data_impl_->realizer && !data_impl_->refreshing)
if (data_impl_->realizer && (!(data_impl_->refreshing || graphics.size().empty())))
{
data_impl_->refreshing = true;
data_impl_->realizer->refresh(graphics);