From 3f9ba9a06ab954dc8f0bd5aa6b1599d9783f1fc9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 10 Nov 2007 01:01:46 +0000 Subject: [PATCH] show default title if no custom one was specified instead of clearing it (patch 1829254) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/colordlg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/msw/colordlg.cpp b/src/msw/colordlg.cpp index 66a70b0eb5..435d57fc3e 100644 --- a/src/msw/colordlg.cpp +++ b/src/msw/colordlg.cpp @@ -69,7 +69,9 @@ wxColourDialogHookProc(HWND hwnd, CHOOSECOLOR *pCC = (CHOOSECOLOR *)lParam; wxColourDialog *dialog = (wxColourDialog *)pCC->lCustData; - ::SetWindowText(hwnd, dialog->GetTitle()); + const wxString& title = dialog->GetTitle(); + if ( !title.empty() ) + ::SetWindowText(hwnd, title); wxPoint pos = dialog->GetPosition(); if ( pos != wxDefaultPosition )