Skip to content
Extraits de code Groupes Projets
Valider d9e25453 rédigé par Rodrigo Braz Monteiro's avatar Rodrigo Braz Monteiro
Parcourir les fichiers

Hopefully fixed a crash with mouse wheel on associations Window.

Originally committed to SVN as r1936.
parent cf3a2339
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -93,6 +93,7 @@ void StartupLog(const wxString &msg) {
// Gets called when application starts, creates MainFrame
bool AegisubApp::OnInit() {
StartupLog(_T("Inside OnInit"));
frame = NULL;
try {
// Initialize randomizer
StartupLog(_T("Initialize random generator"));
......@@ -409,7 +410,7 @@ END_EVENT_TABLE()
void AegisubApp::OnMouseWheel(wxMouseEvent &event) {
wxPoint pt;
wxWindow *target = wxFindWindowAtPointer(pt);
if (target == frame->audioBox->audioDisplay || target == frame->SubsBox) {
if (frame && (target == frame->audioBox->audioDisplay || target == frame->SubsBox)) {
if (target->IsShownOnScreen()) target->AddPendingEvent(event);
else event.Skip();
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter