X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/393c836c338dc917290ac5c626b5ed24a075d3e9..6dd18972d509fce16afa05eba194ca21db2c48f3:/src/msw/colordlg.cpp diff --git a/src/msw/colordlg.cpp b/src/msw/colordlg.cpp index 92036a89af..b7bbd4fb77 100644 --- a/src/msw/colordlg.cpp +++ b/src/msw/colordlg.cpp @@ -152,10 +152,9 @@ int wxColourDialog::ShowModal() bool success = ::ChooseColor(&(chooseColorStruct)) != 0; // Try to highlight the correct window (the parent) - HWND hWndParent = 0; if (GetParent()) { - hWndParent = (HWND) GetParent()->GetHWND(); + HWND hWndParent = (HWND) GetParent()->GetHWND(); if (hWndParent) ::BringWindowToTop(hWndParent); }