From: Vadim Zeitlin Date: Sat, 25 Jul 2009 16:40:35 +0000 (+0000) Subject: Set all parent frame icons for print preview frame. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7ccf316e1a2703bc0323b2eb997d821a44022348 Set all parent frame icons for print preview frame. Using SetIcon(GetIcon()) resulted in ugly scaled icons being used for small icons while using SetIcons(GetIcons()) correctly reuses all parent frame icons in the child one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index fcab021603..8ab0c0d002 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -1271,7 +1271,7 @@ wxFrame(parent, wxID_ANY, title, pos, size, style, name) #ifdef __WXMSW__ wxFrame* topFrame = wxDynamicCast(wxTheApp->GetTopWindow(), wxFrame); if (topFrame) - SetIcon(topFrame->GetIcon()); + SetIcons(topFrame->GetIcons()); #endif }