Fix for empty or broken png output.

Fix for instance transformation order error and state invalidation issues with rasterization.
This commit is contained in:
tamasmeszaros 2018-11-29 18:12:40 +01:00
parent bf94751a94
commit 55d62b8295
5 changed files with 54 additions and 161 deletions

View file

@ -71,14 +71,12 @@ int ProgressStatusBar::get_progress() const
void ProgressStatusBar::set_progress(int val)
{
if(!m_prog->IsShown()) show_progress(true);
if(val < 0) return;
if(val == m_prog->GetRange()) {
m_prog->SetValue(0);
show_progress(false);
}
else if(val < 0) {
m_prog->Pulse();
}
else {
m_prog->SetValue(val);
}