Add possibility to create a wxImage from
static data (or data on the stack) without using the heap. Tried to fix the crash-all-apps problem reported in the list. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2579,9 +2579,15 @@ void wxWindow::OnInternalIdle()
|
||||
|
||||
bool child_already_resized = FALSE;
|
||||
if (IsTopLevel() && !m_isFrame)
|
||||
child_already_resized = gtk_pizza_child_resized( GTK_PIZZA(m_wxwindow->parent), m_wxwindow );
|
||||
{
|
||||
child_already_resized = ((m_wxwindow->parent) &&
|
||||
(gtk_pizza_child_resized( GTK_PIZZA(m_wxwindow->parent), m_wxwindow )));
|
||||
}
|
||||
else
|
||||
child_already_resized = gtk_pizza_child_resized( GTK_PIZZA(m_widget->parent), m_widget );
|
||||
{
|
||||
child_already_resized = ((m_widget->parent) &&
|
||||
(gtk_pizza_child_resized( GTK_PIZZA(m_widget->parent), m_widget )));
|
||||
}
|
||||
|
||||
if (child_already_resized)
|
||||
{
|
||||
|
Reference in New Issue
Block a user