Fixed the tool options disappearing at undo.

Fixed the tool options disappearing at undo.
This commit is contained in:
Lauri Alanko 1998-03-16 10:22:53 +00:00
parent a229c9606a
commit 7ad9fec9b9
4 changed files with 8 additions and 8 deletions

View File

@ -551,12 +551,12 @@ menus_activate_callback (GtkWidget *widget,
if (entry->callback == ignore[i])
return;
if (active_tool->gdisp_ptr == NULL)
active_tool_control (DESTROY, active_tool->gdisp_ptr);
active_tool_control (RECREATE, active_tool->gdisp_ptr);
else {
GDisplay *gdisp;
gdisp = gdisplay_active ();
if (gdisp == NULL || ((GDisplay*)active_tool->gdisp_ptr)->gimage == gdisp->gimage)
active_tool_control (DESTROY, active_tool->gdisp_ptr);
active_tool_control (RECREATE, active_tool->gdisp_ptr);
}
}
}

View File

@ -551,12 +551,12 @@ menus_activate_callback (GtkWidget *widget,
if (entry->callback == ignore[i])
return;
if (active_tool->gdisp_ptr == NULL)
active_tool_control (DESTROY, active_tool->gdisp_ptr);
active_tool_control (RECREATE, active_tool->gdisp_ptr);
else {
GDisplay *gdisp;
gdisp = gdisplay_active ();
if (gdisp == NULL || ((GDisplay*)active_tool->gdisp_ptr)->gimage == gdisp->gimage)
active_tool_control (DESTROY, active_tool->gdisp_ptr);
active_tool_control (RECREATE, active_tool->gdisp_ptr);
}
}
}

View File

@ -551,12 +551,12 @@ menus_activate_callback (GtkWidget *widget,
if (entry->callback == ignore[i])
return;
if (active_tool->gdisp_ptr == NULL)
active_tool_control (DESTROY, active_tool->gdisp_ptr);
active_tool_control (RECREATE, active_tool->gdisp_ptr);
else {
GDisplay *gdisp;
gdisp = gdisplay_active ();
if (gdisp == NULL || ((GDisplay*)active_tool->gdisp_ptr)->gimage == gdisp->gimage)
active_tool_control (DESTROY, active_tool->gdisp_ptr);
active_tool_control (RECREATE, active_tool->gdisp_ptr);
}
}
}

View File

@ -551,12 +551,12 @@ menus_activate_callback (GtkWidget *widget,
if (entry->callback == ignore[i])
return;
if (active_tool->gdisp_ptr == NULL)
active_tool_control (DESTROY, active_tool->gdisp_ptr);
active_tool_control (RECREATE, active_tool->gdisp_ptr);
else {
GDisplay *gdisp;
gdisp = gdisplay_active ();
if (gdisp == NULL || ((GDisplay*)active_tool->gdisp_ptr)->gimage == gdisp->gimage)
active_tool_control (DESTROY, active_tool->gdisp_ptr);
active_tool_control (RECREATE, active_tool->gdisp_ptr);
}
}
}