--Bug fixes

-Switching between SP and DP before previews had finished would set the current flame back to the first one in the file.
This commit is contained in:
mfeemster
2016-06-07 20:37:15 -07:00
parent 51dbe8e59d
commit 51c1cc7a83
3 changed files with 11 additions and 10 deletions

View File

@ -690,8 +690,8 @@ bool Fractorium::CreateControllerFromOptions()
if (m_Controller.get())
{
scale = m_Controller->LockedScale();
current = m_Controller->SaveCurrentToOpenedFile();
m_Controller->StopPreviewRender();//Must stop any previews first, else changing controllers will crash the program.
m_Controller->StopPreviewRender();//Must stop any previews first, else changing controllers will crash the program and SaveCurrentToOpenedFile() will return 0.
current = m_Controller->SaveCurrentToOpenedFile(false);
m_Controller->CopyTempPalette(tempPalette);//Convert float to double or save double verbatim;
//Replace below with this once LLVM fixes a crash in their compiler with default lambda parameters.//TODO
//m_Controller->CopyEmber(ed);