Fix random crash using Eyedropper with Alt+click

This was a problem related to uninitialized memory in Render class.
The Render::renderLayer() member function was accessing to an invalid
m_previewImage pointer.
This commit is contained in:
David Capello 2015-06-05 01:05:35 -03:00
parent 59cdae7715
commit 557c7854bc

View File

@ -328,6 +328,9 @@ Render::Render()
, m_bgType(BgType::TRANSPARENT) , m_bgType(BgType::TRANSPARENT)
, m_bgCheckedSize(16, 16) , m_bgCheckedSize(16, 16)
, m_globalOpacity(255) , m_globalOpacity(255)
, m_selectedLayer(nullptr)
, m_selectedFrame(-1)
, m_previewImage(nullptr)
, m_onionskinType(OnionskinType::NONE) , m_onionskinType(OnionskinType::NONE)
{ {
} }